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

ignore Validate Resources #66

Closed
wants to merge 3 commits into from

Conversation

lisandrop05
Copy link

I'm not using resources on keycloak, that's why I added the possibility to disable the resource validation.

@lisandrop05 lisandrop05 marked this pull request as ready for review June 10, 2022 14:34
@alecberney
Copy link

alecberney commented Jun 24, 2022

I also need this possibility, my token given from my school management don't give the allowed_resources.
it produce this error:
KeycloakGuard\Exceptions\ResourceAccessNotAllowedException: [Keycloak Guard] The decoded JWT token has not a valid resource_access allowed by API. Allowed resources by API: in file /var/www/html/vendor/robsontenorio/laravel-keycloak-guard/src/KeycloakGuard.php on line 169

It can be really usefull if you want to manage your roles in the app and be more flexible to change the auth keycloak realm for example.

I also opened an issue related.

close #67

@robsontenorio
Copy link
Owner

Resolved by #77

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.

3 participants