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

JWT Claim Check Usage #1201

Open
wintat opened this issue Jun 19, 2020 · 2 comments
Open

JWT Claim Check Usage #1201

wintat opened this issue Jun 19, 2020 · 2 comments

Comments

@wintat
Copy link

wintat commented Jun 19, 2020

It is hard to follow on the JWT Claim Check Usage with limited resource

Version

latest

Steps To Reproduce

check on the configuration on https://github.com/3scale/APIcast/blob/master/gateway/src/apicast/policy/jwt_claim_check/readme.md

follow the setup with configuration

"policy_chain":[{"name":"jwt_claim_check","version":"builtin","configuration":{"rules":[{"resource_type":"plain","operations":[{"op":"==","jwt_claim_type":"plain","jwt_claim":"admin","value_type":"plain","value":"role"}],"combine_op":"and","resource":"/resource","methods":["GET"]}]}},{"name":"apicast","version":"builtin","configuration":{}}]

putting below token in header with Authorization: Bearer

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6InJvbGUifQ.BRdVYhLJb8fj0FIqHGoeEQzjIfNJ-DABvybbiB796Qk

Current Result

Response shown Request blocked due to JWT claim policy

Expected Result

Return the backend API response

@eloycoto
Copy link
Contributor

eloycoto commented Jul 6, 2020

Could you share the logs? I made a test and everything works as expected.

Regards

@wintat
Copy link
Author

wintat commented Jul 7, 2020

Sorry, I am not quit sure how to get the log you need, I could just give you my configuration.
May be you could share yours configuration?
I mainly found the resources provided seems could not enable me to see the whole picture.
Thanks.
01
02
03
04

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

2 participants