Hi @chawal
Thank you for posting this in Microsoft Q&A.
I understand you want to get access token for multi-tenant application.
To get access token for multi-tenant application, you have to use below endpoint.
I'm obtain an access token using an authorization code flow. First, we need to Request an authorization code.
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
client_id=3b04e940-05a2-4771-93f3-XXX
&response_type=code
&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
&response_mode=query
&scope=user.read
Once the user authenticates and grants consent, the Microsoft identity platform returns a code.
Request an access token.
https://login.microsoftonline.com/<issuer>/oauth2/v2.0/token
client_id= 3b04e940-05a2-4771-93f3-XXX
&scope=user.read
&code= authorization code which get in previous step
&redirect_uri= https://login.microsoftonline.com/common/oauth2/nativeclient
&grant_type=authorization_code
For your reference: https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols#endpoints
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
Please remember to "Accept Answer" if answer helped you.This will help us as well as others in the community who might be researching similar questions.