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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
