Created
March 5, 2024 12:27
-
-
Save jdmedeiros/84bf91cb699f877473fa45671dc1a5b0 to your computer and use it in GitHub Desktop.
superset_config.py with https://auth0.com/ authentication
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask_appbuilder.security.manager import AUTH_OAUTH | |
SECRET_KEY = 'A1B4E2F0C3D7FE98456AC0BD34EF1234' | |
AUTH_TYPE = AUTH_OAUTH | |
AUTH_USER_REGISTRATION = True | |
AUTH_USER_REGISTRATION_ROLE = "Admin" | |
OAUTH_PROVIDERS = [ | |
{ | |
'name': 'auth0', | |
'icon': 'fa-google', | |
'token_key': 'access_token', | |
'remote_app': { | |
'client_id': 'A1B4E2F0C3D7FE98456AC0BD34EF1234', | |
'client_secret': 'A1B4E2F0C3D7FE98456AC0BD34EF1234-A1B4E2F0C3D7FE98456AC0BD34EF1234', | |
'client_kwargs': { | |
'scope': 'openid profile email', | |
}, | |
'server_metadata_url': 'https://my-domain.auth0.com/.well-known/openid-configuration', | |
'access_token_url': 'https://my-domain.auth0.com/oauth/token', | |
'authorize_url': 'https://my-domain.auth0.com/authorize', | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment