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

TykTechnologies / tyk / 5873 / 2

Build:
DEFAULT BRANCH: master
Ran 06 Dec 2018 11:35AM UTC
Files 104
Run time 2451min
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

06 Dec 2018 11:28AM UTC coverage: 61.198% (+0.07%) from 61.133%
LATEST_GO=true

push

travis-ci

buger
JWT scope-policy mapping support added (#1943)

added changes for https://github.com/TykTechnologies/tyk/issues/1834


for JWT middle-ware:
1. There is a new field `jwt_scope_to_policy_mapping ` in API definition (payload in endpoint to create API as well) - which is just mapping scope-to-policy_id
2. If this field is present then session key associated with the given JWT will be assigned to several policies using provided mapping
3. base-policy JWT claim logic still works for backward compatibility
4. policies mapped to JWT scope should follow recently implemented rules around `per_api` partitions flag - they shouldn't have the same API id in ACL and might specify limit on API level per API in ACL

for open ID middle-ware:
1. the idea is that UI will provide choice to user in dialog where we setup issuer/provider - use old implementation with client_id->policy_id pair Or use mapping scope->policy (but not both)
2. if use mapping scope->policy selected we ask values for two new fields `scope_field_name` and `scope_to_policy_mapping`
3. on tyk side - if `scope_field_name` and `scope_to_policy_mapping` are populated it acts as a trigger to use new logic for scope->policy mapping, if those fields are empty it tries to use old logic with client_id->policy_id pair
4. policies mapped to JWT scope should follow recently implemented rules around `per_api` partitions flag - they shouldn't have the same API id in ACL and might specify limit on API level per API in ACL

We should also re-vendor `tyk/apidef` in dashboard (new fields) if we go forward with that approach

9826 of 16056 relevant lines covered (61.2%)

0.68 hits per line

Source Files on job 5873.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5374
  • Travis Job 5873.2
  • f47bc6c0 on github
  • Prev Job for LATEST_GO=true on master (#5866.2)
  • Next Job for LATEST_GO=true on master (#5878.2)
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