Hi @Disciullo John ,
Thanks for reaching out.
I understand you are trying to get an access token using Authorization Code flow.
The authorization code flow has 2 parts:
- Call authorize end point to get the code - As you are using https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize? endpoint which will ask user to authenticate and consent the permissions and redirect you to the URL specified in redirect_uri while registering the application which in your case is callback screen. You can copy the code from here which is used to request an access token.
- Then call token endpoint which redeem the code to get the token.
In your scenario, your first step provides you code which you can copy and pass this code to token endpoint now.
Reference: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.