Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Roles not appearing in tokens generated for my API #593

Closed
1 of 3 tasks
ikethecoder opened this issue Oct 8, 2022 · 1 comment
Closed
1 of 3 tasks

Client Roles not appearing in tokens generated for my API #593

ikethecoder opened this issue Oct 8, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ikethecoder
Copy link
Member

API Services Portal Issue

User Story

As an API Provider,

I want the generated credential to include the Client Roles in the JWT token

so that it can pass the authorization check on the Gateway before reaching my API.

Test Case

ENV

  • DEV
  • TEST
  • PROD

TESTCASE

EXPECTED

  • The generated credential has a "resource_access" claim in the token that shows the two roles, and the aud includes the Client ID used for integrating with the IdP

ACTUAL

  • The Token does not include the resource_access claim and the aud is missing

ERROR

Notes

Some additional observations while testing:

  • When setting the roles up in the Authorization Profile, some of the roles have a " " in front of it, leading to an error when trying to assign it to a Consumer
  • On Approval and Consumer Environment Edit, changing Roles does not work as expected
@ikethecoder ikethecoder added the bug Something isn't working label Oct 8, 2022
@ikethecoder
Copy link
Member Author

Feature branch: feature/fix-client-roles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants