How to validate MS Azure token?

Alexey Mykhailov 25 Reputation points
2024-01-18T13:23:04.1+00:00

Hello, I have an enterprise application set up in MS Azure. It has a MacOS and Android sections filled up for mobile application to retrieve JWT-tokens using address like:

https://login.microsoftonline.com/2c671079-81a2-432c-8377-ef4bf2337e74/v2.0

Question: how the tokens issued by Azure can be verified by my application server? For example, mobile application obtains a JWT from MS Azure server and then sends a request to my server to get some data using this token. How my server can ensure that this token is valid? Should it send some request to a special Azure validation endpoint to check this token? Or should it have some kind of a webhook for Azure to report that this token was issued?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Azizkhon Ishankhonov 1,010 Reputation points
    2024-01-18T14:17:42.6133333+00:00

    Hi @Alexey Mykhailov First of all, take a look documentation where the oauth2.0 flow is described.
    Here is the link: https://learn.microsoft.com/en-us/entra/architecture/auth-oauth2 Diagram of architecture

    As you can see, validation will be done on your server side, and depending on your tech stack I can provide instructions on how to configure authentication on your server. Please let me know if further help is necessary.


0 additional answers

Sort by: Most helpful

Your answer

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