question

LennyPuente-3258 avatar image
0 Votes"
LennyPuente-3258 asked 35247258 edited

How to use authorization code from OAuth flow /authorize endpoint

Hello all,

I am currently trying to implement this -> (https://docs.microsoft.com/en-us/graph/auth-v2-user) into my mendix app, but I am stuck at the moment. I'm trying to get an authorizaiton code so that I can request a token to get the bearer token. But I am not sure how to save and use the code later on that is sent in the url after signing into my app via step 2 'Authorization request'. Can anyone help me?

Thanks

azure-ad-authentication
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
1 Vote"
amanpreetsingh-msft answered

Hi @LennyPuente-3258 • Thank you for reaching out.

To implement Authorization Code flow, it is recommended to use Microsoft Authentication Library (MSAL). Depending on the application type and platform there are various versions of MSAL available, like MSAL.js, MSAL Java, MSAL.NET.

Based on your application type and platform, you need to refer to the samples Call Microsoft Graph and Sign in users and call Microsoft Graph, where Auth flow is Authorization code provided here: Microsoft identity platform code samples


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.