Superset OAUTH Configurations help needed. #30973
Replies: 2 comments 15 replies
-
To configure Keycloak OAUTH in your
This setup will enable Keycloak OAUTH in your Superset container and allow Superset to check the |
Beta Was this translation helpful? Give feedback.
-
@praveer38 Were you able to find a solution? |
Beta Was this translation helpful? Give feedback.
-
I need help with setting up OAUTH in my superset_config.py. I want to enable keycloak oauth in my superset container through the superset_config.py. On top of that i want that when a user logs in through keycloak, superset should check the realm_access role for the user and assign the superset user to that person on login. Please provide me the code for this. Following are my current configurations.
OAUTH_PROVIDERS = [ { 'name': 'keycloak', 'icon': 'fa-key', 'token_key': 'access_token', # Keycloak uses 'access_token' for the access token 'remote_app': { 'client_id': 'superset-dev', 'client_secret': 'SiTTKV3vM1IWBBpIlkCCEVyqwDMxbrbZ', 'client_kwargs': { 'scope': 'openid profile email', }, 'access_token_url': 'https://iam.rightcrowd.dev/realms/superset-dev/protocol/openid-connect/token', 'authorize_url': 'https://iam.rightcrowd.dev/realms/superset-dev/protocol/openid-connect/auth', 'server_metadata_url': 'https://iam.rightcrowd.dev/realms/superset-dev/.well-known/openid-configuration', 'api_base_url': 'https://iam.rightcrowd.dev/realms/superset-dev/protocol/', }, 'extra_fields': { 'roles': 'realm_access.roles', } }] AUTH_ROLES_MAPPING = { "supersetuser": ["RightCrowd"], "supersetadmin": ["Admin"], }
Beta Was this translation helpful? Give feedback.
All reactions