• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 6373

Build:
DEFAULT BRANCH: master
Ran 14 Mar 2019 08:29PM UTC
Jobs 1
Files 110
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6373

push

travis-ci

web-flow
Custom signature validation (#2171)

#2045

`auth` section now has new `validate_signature` boolean field, and `signature` section for configuring signature flow.

Currently supports mashery signature validation modes `MasherySHA256`
and `MasheryMD5`.

```json
"auth": {
  "validate_signature": true,
  "signature": {
    "algorithm": "MasherySHA256",
    "header": "X-Signature",
    "secret": "secret",
    "allowed_clock_skew": 2
  }
}
```

"secret" field can hold dynamic values from meta or context, for example: "$tyk_meta.signature_secret".

Additionally, you can override error code and message using:
```
  "error_code": 403,
  "error_message": "your signature is invalid"
```

Benchmarks:

```
BenchmarkMasherySha256Sum_Hash-4          500000              2094 ns/op
208 B/op          4 allocs/op
```

10579 of 16960 relevant lines covered (62.38%)

0.7 hits per line

Jobs
ID Job ID Ran Files Coverage
2 6373.2 (LATEST_GO=true) 14 Mar 2019 08:29PM UTC 0
62.38
Travis Job 6373.2
Source Files on build 6373
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6373
  • 241fd01d on github
  • Prev Build on master (#6366)
  • Next Build on master (#6385)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc