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

Acess denied on get_user_information endpoint unelss oidc client scope present in keycloak #49

Open
crwww opened this issue Apr 8, 2024 · 4 comments

Comments

@crwww
Copy link

crwww commented Apr 8, 2024

I found that I couldn't access the user information endpoint until I added a client scope in Keycloak called "openid". Unsure if this is a version issue with keycloak.

@crwww
Copy link
Author

crwww commented Apr 8, 2024

Appending &scope=openid to the redirect uri also works if you dont want to add the scope in Keycloak.
<%= link_to 'Login with SSO' , KeycloakOauth.connection.authorization_endpoint(options: { redirect_uri: keycloak_oauth.oauth2_url + "&scope=openid" }), class:'button' %>

@andyundso
Copy link
Contributor

could be a version difference ... which one from Keycloak are you using?

besides, providing scope to the authorization endpoint is actually a default option by the OpenID Connect specification, so we could add support for it.

@crwww
Copy link
Author

crwww commented Apr 8, 2024

Running on 21.1.1 Adding a scope config option seems like a great idea. I would be happy to add it in if you are too busy.

@andyundso
Copy link
Contributor

if you have a couple of minutes, would be great if you can implement it. I can take care of making a release in timely fashion.

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