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

Bad Request For Permission Synchronisation #59

Open
SamBugler opened this issue May 30, 2021 · 2 comments
Open

Bad Request For Permission Synchronisation #59

SamBugler opened this issue May 30, 2021 · 2 comments

Comments

@SamBugler
Copy link

SamBugler commented May 30, 2021

When trying to synchronise permissions from the admin panel, I get the following error

KeycloakClientError at /admin/django_keycloak/realm/
400 Client Error: Bad Request for url: https://DOMAIN/auth/realms/REALM/protocol/openid-connect/token

The service account has the appropriate permissions and client credentials grant type is activated

Keycloak version is 12.0.4

@SamBugler SamBugler reopened this May 30, 2021
@SamBugler
Copy link
Author

Seems to be related to 'scope': 'realm-management openid'. This scope isn't available, at least in the latest version of keycloak. Work around was to just create this scope and add it to client then it worked.

@pmahindrakar
Copy link

@SamBugler Thanks for the input. I was also facing similar error and after adding 'scope': 'realm-management openid' to the client , above error was resolved. However I am getting "KeyError at /admin/django_keycloak/realm/" "refresh_token". Any specific mappers to be used in 'scope': 'realm-management openid' ??

I am using KeyCloak 12.0.4.

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