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

Profiles is a mandatory? #57

Closed
rafaelvicio opened this issue May 9, 2018 · 2 comments
Closed

Profiles is a mandatory? #57

rafaelvicio opened this issue May 9, 2018 · 2 comments
Labels
question This issue is a question.

Comments

@rafaelvicio
Copy link

Is the following configuration mandatory?

When requesting the method to get the User's Profile, the client app should have the scope and access to the account view-profile role. To do it, access Clients arrow_right My-app arrow_right Scope. Select the account app in Client Roles and assign the view-profile role.

I do not intend to work with the account setup page, but without that I'm having trouble using the library.

@rafaelvicio
Copy link
Author

I'm getting the following error:

The user profile could not be loaded

I already use LDAP for the accounts in keycloak, so everyone who has account is already authorized. I do not need to associate it with any profile.

@mauriciovigolo
Copy link
Owner

@rafaelvicio, this configuration is necessary to load the user profile data in KeycloakService#loadUserProfile or keycloak-js loadUserProfile function. So, regardless if you are using LDAP as user federation or some other identity provider, to have access to the user info, you have to authorize access to read the user data in the account client.

Besides doing the scope configuration, please also check if the account client is enabled at the keycloak admin console -> clients -> account, then check if it is enabled.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is a question.
Projects
None yet
Development

No branches or pull requests

2 participants