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

Okta JWT tokens not supported for offline authorizer #1789

Closed
ktwbc opened this issue May 26, 2024 · 1 comment
Closed

Okta JWT tokens not supported for offline authorizer #1789

ktwbc opened this issue May 26, 2024 · 1 comment

Comments

@ktwbc
Copy link
Contributor

ktwbc commented May 26, 2024

Feature Request

I will have a PR for this request. The JWT Okta tokens use "scp" instead of "scopes" which is an array already on the JWT token. Since the offline authorizer was written around cognito, differences are making an Okta Dev JWT token not work. The fix was just a matter of detecting if scp already exists and then using it in favor of scopes parsing.

Sample Code

        const { aud, iss, scope, scp, client_id: clientId } = claims

       scopes = scp || scope.split(" ")
@ktwbc
Copy link
Contributor Author

ktwbc commented May 27, 2024

#1790

@ktwbc ktwbc closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant