mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-13 14:44:47 +00:00
fix: SSO access to web assets with encrypted password auto-filling
This commit is contained in:
parent
9bdfab966f
commit
99c4622ccb
@ -120,7 +120,10 @@ class SessionCookieMiddleware(MiddlewareMixin):
|
||||
USER_LOGIN_ENCRYPTION_KEY_PAIR = 'user_login_encryption_key_pair'
|
||||
|
||||
def set_cookie_public_key(self, request, response):
|
||||
if request.path.startswith('/api'):
|
||||
whitelist = [
|
||||
'/api/v1/authentication/sso/login/',
|
||||
]
|
||||
if request.path.startswith('/api') and request.path not in whitelist:
|
||||
return
|
||||
|
||||
session_public_key_name = settings.SESSION_RSA_PUBLIC_KEY_NAME
|
||||
|
Loading…
Reference in New Issue
Block a user