What is this code? How does the Spring Boot decodes the code and understands the user role?
CodePudding user response:
What is this code?
This is the authorization code
. Typically you would use this code to get access token and id token. If you are using Azure AD SDK like MSAL, the SDK will take care of getting tokens using the authorization code.
To learn more about authorization code flow, please see this: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow.