From 38f7c123e5bb8c2ae1e68c89ad15168cb771f3f6 Mon Sep 17 00:00:00 2001 From: xinwen Date: Mon, 26 Oct 2020 11:59:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(audits):=20sso=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=B2=A1=E6=9C=89=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/api/sso.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/authentication/api/sso.py b/apps/authentication/api/sso.py index 1b0a9fa25..a2d87e6db 100644 --- a/apps/authentication/api/sso.py +++ b/apps/authentication/api/sso.py @@ -60,6 +60,7 @@ class SSOViewSet(AuthMixin, JmsGenericViewSet): 此接口违反了 `Restful` 的规范 `GET` 应该是安全的方法,但此接口是不安全的 """ + request.META['HTTP_X_JMS_LOGIN_TYPE'] = 'W' authkey = request.query_params.get(AUTH_KEY) next_url = request.query_params.get(NEXT_URL) if not next_url or not next_url.startswith('/'):