From 5f4918961116325e395eeb792a5718b56af20674 Mon Sep 17 00:00:00 2001 From: Bingchang Chen <19990626.love@163.com> Date: Sun, 20 Mar 2022 12:22:25 +0800 Subject: [PATCH] fix: Fix self.algorithms data type (#17) --- src/casdoor/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/casdoor/main.py b/src/casdoor/main.py index 33c9d51..3622a57 100644 --- a/src/casdoor/main.py +++ b/src/casdoor/main.py @@ -43,7 +43,7 @@ def __init__( self.grant_type = "authorization_code" - self.algorithms = "RS256" + self.algorithms = ["RS256"] def get_auth_link(self, redirect_uri: str, state: str, response_type: str = "code", scope: str = "read"): url = self.front_endpoint + "/login/oauth/authorize"