From 3c83d1ef350a80b4392080abdaacdaa5235a78ee Mon Sep 17 00:00:00 2001 From: Baghirov Feyruz Date: Wed, 11 Sep 2024 14:48:44 +0200 Subject: [PATCH] added FIX ME near workaround --- web/server/codechecker_server/api/authentication.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/server/codechecker_server/api/authentication.py b/web/server/codechecker_server/api/authentication.py index b81a6751a2..045acc1d86 100644 --- a/web/server/codechecker_server/api/authentication.py +++ b/web/server/codechecker_server/api/authentication.py @@ -226,8 +226,10 @@ def performLogin(self, auth_method, auth_string): client_secret, scope=scope, redirect_uri=redirect_uri) - #FIXME: This is a workaround for the Microsoft OAuth2 provider + + # FIXME: This is a workaround for the Microsoft OAuth2 provider # which doesn't correctly fetch the code from url. + code = url.split("code=")[1].split("&")[0] url = url.split("?")[0] + "?code=" + code token = session.fetch_token(