修改SSO
This commit is contained in:
@@ -84,7 +84,7 @@ def authorized():
|
||||
decoded_jwt = jwt.decode(access_token, options={"verify_signature": False})
|
||||
|
||||
# 5. 验证和清理 state 参数 (防止开放重定向攻击)
|
||||
safe_state = "/callback"
|
||||
safe_state = current_app.config["FRONTEND_CALLBACK_PATH"]
|
||||
print(f"Redirecting to: {DOMAIN}{safe_state}")
|
||||
|
||||
# 6. 设置 Cookie
|
||||
@@ -227,7 +227,7 @@ def authorized_test():
|
||||
decoded_jwt = jwt.decode(access_token, options={"verify_signature": False})
|
||||
|
||||
# 5. 验证和清理 state 参数 (防止开放重定向攻击)
|
||||
safe_state = "/callback"
|
||||
safe_state = current_app.config["FRONTEND_CALLBACK_PATH"]
|
||||
print(f"Redirecting to: {DOMAIN}{safe_state}")
|
||||
|
||||
# 6. 设置 Cookie
|
||||
|
||||
Reference in New Issue
Block a user