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

Error when no JWT token provided #146

Closed
DG-Wangtao opened this issue Jun 22, 2021 · 0 comments · Fixed by #147
Closed

Error when no JWT token provided #146

DG-Wangtao opened this issue Jun 22, 2021 · 0 comments · Fixed by #147

Comments

@DG-Wangtao
Copy link

wada-ama/kong-plugin-opa#8

wada-ama/kong-plugin-opa#8 (comment)

@zahiyo Hi, will you fix this issues here?

zahiyo added a commit to zahiyo/contrib that referenced this issue 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 open-policy-agent#146
zahiyo added a commit to zahiyo/contrib that referenced this issue 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 open-policy-agent#146

Signed-off-by: Younes Zahidi <12915382+zahiyo@users.noreply.github.com>
ashutosh-narkar pushed a commit that referenced this issue 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

Signed-off-by: Younes Zahidi <12915382+zahiyo@users.noreply.github.com>
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 a pull request may close this issue.

1 participant