I am using Azure AD OAuth 2.0 authorization flow for my Spring Boot Microservices + Angular2 application.
Flow of my application
- (1st request to my Spring Boot application from frond-end) Spring boot application redirect it Azure login page.
- User enters his credentials
- Authorization server sends POST request to
redirect_uri, this request have theauthorization_codealong with other user info(like first name, last name and user id). - Then I get
bearertoken andrefresh_tokenusingauthorization_code
Now I want to sent bearer_token to other microservice which will validate the bearer_token.
My question is how can validate bearer_token and retrieve the owner of that token in other microservices ?