From 3ae27cf3915e6951819d4be80afd3cff3bcee554 Mon Sep 17 00:00:00 2001 From: Baghirov Feyruz Date: Wed, 11 Sep 2024 14:47:47 +0200 Subject: [PATCH] added FIX ME near workaround --- web/server/codechecker_server/api/authentication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/server/codechecker_server/api/authentication.py b/web/server/codechecker_server/api/authentication.py index 9cbdc82013..b81a6751a2 100644 --- a/web/server/codechecker_server/api/authentication.py +++ b/web/server/codechecker_server/api/authentication.py @@ -226,7 +226,8 @@ 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 + # 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(