How to decode the access token retrieved from the Azure AD app when signed in with a Microsoft Personal Account?

Erantha Welikala 0 Reputation points
2023-06-12T07:17:04.2733333+00:00

I have created an Azure AD application integrated with an Ionic mobile application to access the Calendars. I am using a Single Page Application platform for this.

I have an issue when trying to decode the access token received when a user login to the Azure AD app with a Microsoft personal account. I was able to decode the access token received when a user login to the app with a Microsoft work/school account as it was a JWT.

If anyone has a workaround for this it would be a great help.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ab-8756 805 Reputation points
    2023-06-12T13:48:46.4066667+00:00

    Hello Erantha Welikala,
    Thank you for reaching out to this Q&A Forum.

    If you want to obtain a token in jwt format, you can add your personal account as a guest account to your Azure tenant. Then change /common to /tenant id.

    Hope that helps.

    Thanks

    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.