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

TykTechnologies / tyk / 5873

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

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

Jobs
ID Job ID Ran Files Coverage
2 5873.2 (LATEST_GO=true) 06 Dec 2018 11:35AM UTC 0
61.2
Travis Job 5873.2
Source Files on build 5873
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5873
  • f47bc6c0 on github
  • Prev Build on master (#5866)
  • Next Build on master (#5878)
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