-
Notifications
You must be signed in to change notification settings - Fork 14.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
How to Get Keycloak User Roles After Integrating Single Sign On with Keycloak #32023
Comments
To ensure that the correct Keycloak user roles are assigned in Superset after integrating Single Sign-On with Keycloak, you need to map the roles from Keycloak to Superset roles using the Here are a few things to check and adjust:
If these steps do not resolve the issue, you might want to review similar discussions for additional insights. For instance, there is an open discussion on Assigning Superset roles to Keycloak authenticated users using the AUTH_ROLES_MAPPING that might provide more context or solutions [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu when i print
there is no |
To correctly extract roles from the Keycloak response, you need to ensure that the roles are included in the response from Keycloak. It seems that the current response does not include any roles. Here are some steps you can take:
By configuring Keycloak to include roles and updating your code to extract them correctly, you should be able to map Keycloak roles to Superset roles effectively. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Bug description
Here is the code from
superset_config.py
Screenshots/recordings
Every time i sign in , the public role is assigned to the user on superset irrespective of what role is present for that user in keycloak
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: