Skip to content

Commit

Permalink
added FIX ME near workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
feyruzb committed Sep 11, 2024
1 parent 3e32aa7 commit 3ae27cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/server/codechecker_server/api/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3ae27cf

Please sign in to comment.