You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/01/08 16:36:11 UTC

[GitHub] [superset] raags commented on issue #2580: Question: How to auto login (bypass) login page?

raags commented on issue #2580:
URL: https://github.com/apache/superset/issues/2580#issuecomment-1008051707


   The solution mentioned https://github.com/apache/superset/issues/2580#issuecomment-293291888 works for me, i.e. adding:
   
   ```
   class RemoteUserMiddleware(object):
       def __init__(self, app):
           self.app = app
       def __call__(self, environ, start_response):
           user = environ.pop('HTTP_X_PROXY_REMOTE_USER', None)
           environ['REMOTE_USER'] = user
           return self.app(environ, start_response)
   
   ADDITIONAL_MIDDLEWARE = [RemoteUserMiddleware, ]
   AUTH_TYPE = AUTH_REMOTE_USER
   AUTH_USER_REGISTRATION = True
   ```
   Ensure the header used is `X-PROXY-REMOTE-USER` (without the `HTTP`).


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org