Hi KGarvin,
Thank you for posting your query on Microsoft Q&A. I am Saiteja from Q&A will be assisting you with your query.
Based on your query, I understand that you are receiving your access token with issuer as "sts.windows.net"
.
There are two types of token formats in Azure, one is v1 format which gives you "sts.windows.net
" as issuer and the other is v2 format which provides you "login.microsoftonline.com
" as issuer. Both are security token services from Azure AD and v2 has been implemented to support additional features as authenticating personal accounts and protocols like OpenID (which gives ID token).
If you are receiving v1 token even if you are trying with v2 endpoint, you need to change the accessTokenAcceptedVersion
to 2 in application manifest. You can find the same information in this link.
In order to perform the change please do follow the steps.
- Login Azure portal as global admin.
- Go to Entra ID, under manage choose App registration and select the application.
- Scroll down on the left and select Application manifest in the bottom.
- Search for
accessTokenAcceptedVersion
and change the value to 2.
Wait for a while, test the scenario and retrieve the token issuer. I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment"