Azure AD B2C authentication in superset #30739
Unanswered
Harshit-sharma-117
asked this question in
Q&A / Help
Replies: 1 comment 1 reply
-
Hey there, @Harshit-sharma-117! I'm here to help you with your Azure AD B2C integration in Superset. Let's work on solving this together! I found a similar closed issue that might help you with integrating Azure AD B2C authentication in Superset. The issue suggests including OAUTH_PROVIDERS = [
{
"name": "azure",
"icon": "fa-windows",
"token_key": "access_token",
"remote_app": {
"client_id": [client_id],
"client_secret": [secret],
"api_base_url": "https://login.microsoftonline.com/[tenantid]/oauth2",
"client_kwargs": {
"scope": "User.read name preferred_username email profile upn groups",
"resource": client_id,
},
"request_token_url": None,
"access_token_url": "https://login.microsoftonline.com/[tenantid]/oauth2/token",
"authorize_url": "https://login.microsoftonline.com/[tenantid]/oauth2/authorize",
},
},
] Additionally, ensure that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to integrate azure ad b2c auth in my superset app.
we did the azure ad using this code.
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = "Admin"
AUTH_ROLES_SYNC_AT_LOGIN = False
from flask_appbuilder.security.manager import AUTH_OAUTH
AUTH_TYPE = AUTH_OAUTH
OAUTH_PROVIDERS = [
{'name': 'azure',
'icon': 'fa-windows',
'token_key': 'access_token',
'remote_app': {
'client_id': 'XXXXXX-93d3-1814003c71ea',
'client_secret': 'XXXXXXX~e0e9rXms11p9slc28',
'api_base_url': 'https://login.microsoftonline.com/XXXXXXXX8c32-3475d2381555/oauth2',
'client_kwargs': {
'scope': 'User.read givenName sn email profile upn'
},
'request_token_url': None,
'access_token_url': 'https://login.microsoftonline.com/XXXXXXXX-8c32-3475d2381555/oauth2/token',
'authorize_url': 'https://login.microsoftonline.com/XXXXXXX-8c32-3475d2381555/oauth2/authorize',
}
}
]
Beta Was this translation helpful? Give feedback.
All reactions