diff --git a/src/bk-login/bklogin/common/middlewares.py b/src/bk-login/bklogin/common/middlewares.py index 804709eeb..c2892d5dc 100644 --- a/src/bk-login/bklogin/common/middlewares.py +++ b/src/bk-login/bklogin/common/middlewares.py @@ -124,7 +124,7 @@ def __call__(self, request): return self.get_response(request) @staticmethod - def _get_public_key(): + def _get_public_key() -> str: """ 获取 APIGW 的 Public Key 由于配置文件里的 public key 是来自环境变量,且使用 base64 编码,因此需要解码 @@ -169,5 +169,5 @@ def _decode_jwt(self, jwt_token: str) -> Dict[str, Any] | None: return None - def _make_app(self, bk_app_code=None, verified=False): + def _make_app(self, bk_app_code: str | None = None, verified: bool = False): return self.App(bk_app_code=bk_app_code, verified=verified)