Auth0 integration with Apache Superset

Hello All,
I am new to Auth0 and having trouble setting up Auth0 as OAUTH authentication on Apache Incubator Superset

Could anyone please help me?
I am able to redirect to login page but it says Invalid Login.
http://test.sectorinsight.com.au/

Thanks

Hey there!

Can you provide us with more details around the stack that you are using on the Auth0 side + share the screenshots of the error? Thank you!

Hello Konrad,
I am using Auth0 in Apache superset,
whenever i login with the correct credentials it says, Invalid logins on app side but the login is passed from Auth0 side.


Here is the config file.

from flask_appbuilder.security.manager import AUTH_DB, AUTH_LDAP, AUTH_OAUTH

from custom_security_manager import CustomSecurityManager
from custom_sso_security_manager import CustomSsoSecurityManager
CUSTOM_SECURITY_MANAGER = CustomSecurityManager
CUSTOM_SECURITY_MANAGER = CustomSsoSecurityManager
##Custom_Auth
AUTH_TYPE = AUTH_OAUTH
OAUTH_PROVIDERS = [{
‘name’:‘auth0’,
‘token_key’: ‘access_token’,
‘icon’:‘fa-at’,
‘remote_app’: {
‘consumer_key’: ‘*****************’,
‘consumer_secret’: ‘**********************************’,
‘request_token_params’: {
‘scope’: ‘openid email profile’
},
‘base_url’: ‘’,
‘access_token_url’: ‘https://sectorinsight.au.auth0.com/oauth/token’,
‘authorize_url’: ‘https://sectorinsight.au.auth0.com/authorize’,
‘access_token_method’:‘POST’,
}
}]

Will allow user self registration, allowing to create Flask users from Authorized User

AUTH_USER_REGISTRATION = True

The default user self registration role

AUTH_USER_REGISTRATION_ROLE = “Admin”

AUTH_ROLE_ADMIN = ‘Admin’
AUTH_ROLE_PUBLIC = ‘Admin’