jbrunetext edited a comment on issue #10569:
URL:
https://github.com/apache/incubator-superset/issues/10569#issuecomment-671544904
Here there is my config :
```
import os
from flask_appbuilder.security.manager import AUTH_OID, AUTH_OAUTH,
AUTH_REMOTE_USER
from custom_sso_security_manager import CustomSsoSecurityManager
CUSTOM_SECURITY_MANAGER = CustomSsoSecurityManager
#---------------------------------------------------------
# Superset specific config
#---------------------------------------------------------
ROW_LIMIT = 5000
SUPERSET_WORKERS = 2
SUPERSET_WEBSERVER_PORT = 8088
ENABLE_PROXY_FIX = True
#---------------------------------------------------------
#---------------------------------------------------------
# Flask App Builder configuration
#---------------------------------------------------------
# Your App secret key
SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h'
# The SQLAlchemy connection string to your database backend
# This connection defines the path to the database that stores your
# superset metadata (slices, connections, tables, dashboards, ...).
# Note that the connection information to connect to the datasources
# you want to explore are managed directly in the web UI
SQLALCHEMY_DATABASE_URI = "mysql+mysqldb://" + os.environ.get('username')
+ ":" + os.environ.get('password') + "@superset-sqlproxy/superset_dev"
# Flask-WTF flag for CSRF
WTF_CSRF_ENABLED = True
# Add endpoints that need to be exempt from CSRF protection
WTF_CSRF_EXEMPT_LIST = []
# Set this API key to enable Mapbox visualizations
MAPBOX_API_KEY = ''
AUTH_TYPE = AUTH_OAUTH
OAUTH_PROVIDERS = [
{ 'name':'pingID',
'token_key':'access_token',
'icon':'fa-address-card',
'remote_app': {
'consumer_key':'CLIENT_ID',
'consumer_secret':'SECRET_ID',
'request_token_params':{
'scope': 'openid'
},
'access_token_method':'POST',
'access_token_params':{
'client_id':'CLIENT_ID'
},
'base_url':'https://idpb2e.example.com/as/',
'request_token_url': None,
'access_token_url':'https://idpb2e.example.com/as/token.oauth2',
'authorize_url':'https://idpb2e.example.com/as/authorization.oauth2',
'access_token_headers':{
'Authorization': 'Basic
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(base64)='
}
}
}
]
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = "admin"
```
there is a log attempt
```
"Flask-Caching: CACHE_TYPE is set to null, "
DEBUG:flask_oauthlib:Prepare oauth2 remote args {'code': 'XXXXXAABv',
'client_secret': 'XXXXXXX', 'redirect_uri':
'https://superset.mondomain.com/oauth-authorized/pingID'}
DEBUG:flask_oauthlib:Request 'https://idpb2e.example.com/as/token.oauth2'
with 'POST' method
Exception on /oauth-authorized/pingID [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in
wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in
full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in
```
Something is wrong i don't see the secret_id in the request.....
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]