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

kong_api_authz: Fix error when no JWT token is provided #147

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

zahiyo
Copy link
Contributor

@zahiyo zahiyo commented Jun 23, 2021

When no token is provided with the request, the execution fail the attempt to index the field 'payload' (a nil value).
In case the subject from the JWT token is not be defined or there's no token, 'anonymous' will be used instead.

Fixes #146

When no token is provided with the request, the execution fail the attempt to index the field 'payload' (a nil value).
In case the subject from the JWT token is not be defined or there's no token, 'anonymous' will be used instead.

Fixes open-policy-agent#146

Signed-off-by: Younes Zahidi <[email protected]>
@ashutosh-narkar ashutosh-narkar merged commit 3aa2d29 into open-policy-agent:main Jun 23, 2021
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

Successfully merging this pull request may close these issues.

Error when no JWT token provided
2 participants