如何实现oauth自动登录 #31593
Unanswered
jinlinyouyou
asked this question in
Q&A / Help
如何实现oauth自动登录
#31593
Replies: 1 comment 1 reply
-
在类似的讨论中,有一个解决方案可以帮助实现自动登录。可以在 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 请确保使用的请求头是 To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我设置了oauth登录,并且只有一个oauth,当我已经登录了,访问superset时,还是会跳转到sign in with XXX 页面,必须得点一下sign in with XXX按钮,才能进入具体的页面,要如何自动登录?
Beta Was this translation helpful? Give feedback.
All reactions