How to Get Keycloak User Roles After Integrating Single Sign On with Keycloak #32173
Replies: 3 comments 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
-
@dosu when i print
there is no |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions