From 066ef7b39a4dde4ee418c4d8a2c322813162a0a6 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(