nitesh
May 29, 2020, 10:08am
1
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!
nitesh
May 29, 2020, 11:50am
3
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.
nitesh
May 29, 2020, 11:54am
4
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’
Hey @nitesh do you got any solution to this because currently I am also facing the same issue with microsoft sso.