-
Notifications
You must be signed in to change notification settings - Fork 121
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
Authorization of Django with Keycloak #42
Comments
I think I have the same question or similar question. I have the user login etc. working but now I needed to be able to use the keycloak admin api:
I suspect 3. but this will give a 401 error::
Any help would be great! Happy to do some documentation once I understand it. |
I had the same issue, it turns out it gets fixed when I changed the cache engine. When Django uses non databased cache, the session is stored somewhere in the memory of the worker. Later, when callback is returned it can be processed by different worker which does not have the freshly created session. An other problem is that Keycloak client credentials can be wrongly set. Good luck to any developer that reads this comment! |
I am using Django keycloak to authenticate user in my django application.
Once the user is authenticated how can I sync or map Django groups permission to keycloak users.
I followed the tutorial and while synchronizing permissions I get following error
401 Client Error: Unauthorized for url: keycloack-serverurl/auth/realms/myrealm/protocol/openid-connect/token
I am using local user setup mode in my application and I am able to authentication user using keycloak users
Also I am new to keycloak authorization services.
The text was updated successfully, but these errors were encountered: