jbrunetext opened a new issue #10569: URL: https://github.com/apache/incubator-superset/issues/10569
hi, i configure my oauth login according to http://superset.apache.org/installation.html#custom-oauth2-configuration. Everything is right, but it turns wrong when the code runs at "oauth_authorized" method in views.py. i alse setup the CustomSsoSecurityManager for troubleshooting same error... i get an exception 500 - Internal Server Error ```Stacktrace 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 handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/views.py", line 677, in oauth_authorized resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response() File "/usr/local/lib/python3.6/site-packages/flask_oauthlib/client.py", line 707, in authorized_response data = self.handle_oauth2_response(args) File "/usr/local/lib/python3.6/site-packages/flask_oauthlib/client.py", line 692, in handle_oauth2_response type='invalid_response', data=data flask_oauthlib.client.OAuthException: Invalid response from pingID ``` ### Expected results i was expected to redirect to /login ### Actual results error 500 #### Screenshots see the stacktrace #### How to reproduce the bug 1. Go to url_base 2. Click on javascript:set_openid('/login/pingID', 'pingID'); 3. valid OK 4. See error ### Environment (please complete the following information): - superset version: /usr/local/lib/python3.6/site-packages/flask_caching/__init__.py:189: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. "Flask-Caching: CACHE_TYPE is set to null, " -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Superset 0.36.0 - python version: python --version Python 3.6.10 ### Checklist Make sure these boxes are checked before submitting your issue - thank you! - [X] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [X] I have reproduced the issue with at least the latest released version of superset. - [X] I have checked the issue tracker for the same issue and I haven't found one similar. ---------------------------------------------------------------- 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]
