From b8ff3b38bf729c1fd60e36c53ae92447a9ca3c47 Mon Sep 17 00:00:00 2001 From: ibuler Date: Sun, 27 Sep 2020 17:56:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmiddleware=E5=BC=95?= =?UTF-8?q?=E8=B5=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/backends/cas/middleware.py | 4 ++-- apps/authentication/backends/oidc/middleware.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/authentication/backends/cas/middleware.py b/apps/authentication/backends/cas/middleware.py index 7866bf6e6..81574305f 100644 --- a/apps/authentication/backends/cas/middleware.py +++ b/apps/authentication/backends/cas/middleware.py @@ -4,7 +4,7 @@ from django.conf import settings class CASMiddleware(_CASMiddleware): - def __init__(self, **kwargs): - super().__init__(**kwargs) + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) if not settings.AUTH_CAS: raise MiddlewareNotUsed diff --git a/apps/authentication/backends/oidc/middleware.py b/apps/authentication/backends/oidc/middleware.py index 6555c6729..0e58591d4 100644 --- a/apps/authentication/backends/oidc/middleware.py +++ b/apps/authentication/backends/oidc/middleware.py @@ -4,7 +4,7 @@ from django.conf import settings class OIDCRefreshIDTokenMiddleware(_OIDCRefreshIDTokenMiddleware): - def __init__(self, **kwargs): - super().__init__(**kwargs) + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) if not settings.AUTH_OPENID: raise MiddlewareNotUsed