Skip to content

Commit

Permalink
send in body
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 13, 2024
1 parent 2e9422e commit c3c4cb6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sso/Microsoft.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,13 @@ def microsoft_sso(code, redirect_uri=None) -> MicrosoftSSO:
)
response = requests.post(
f"https://login.microsoftonline.com/common/oauth2/v2.0/token",
params={
"code": code,
data={
"client_id": getenv("MICROSOFT_CLIENT_ID"),
"client_secret": getenv("MICROSOFT_CLIENT_SECRET"),
"redirect_uri": redirect_uri,
"code": code,
"grant_type": "authorization_code",
"redirect_uri": redirect_uri,
"scope": "https://graph.microsoft.com/User.Read https://graph.microsoft.com/Mail.Send",
},
)
if response.status_code != 200:
Expand Down

0 comments on commit c3c4cb6

Please sign in to comment.