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

Return Groups in Access Token #71

Open
rds3006 opened this issue Aug 1, 2023 · 1 comment
Open

Return Groups in Access Token #71

rds3006 opened this issue Aug 1, 2023 · 1 comment
Assignees

Comments

@rds3006
Copy link

rds3006 commented Aug 1, 2023

I am trying to get the user details after authenticating with Keycloak v21.0.2. I am getting the details with the user authenticated with the client and client scopes. But I am adding a new client scope of Type Group Membership then the code is breaking and giving me errors as "Notice: Undefined index: error_description" and is not returning anything.
Group membership Client scope :
image
image

Error from Symfony :
image

Now if I remove the group client scope and it is returning back the token. I am not sure if this is issue with Keycloak or the oauth-client-bundle which we are using.

User coming from LDAP/AD Directory will be having group information associated and will have access to application based upon the groups only, hence it is mandatory to get the group in the token.

@stevenmaguire/anyone Any help or suggestion will be appreciated.

@mstefan21
Copy link
Collaborator

Next week I will look at and prepare fix or info what you need change or setup different

@mstefan21 mstefan21 self-assigned this Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants