2020年12月21日星期一

Passing Microsoft Graph api calls from Spring Boot backend to Angular

My Authorization Client: Angular, Resource Server: Java Spring Boot, Authorization Server: Azure Active Directory

I am getting an access token from my Angular client, passing it to my back end Spring resource server. The backend is using an OBO flow to request another token on behalf of the user, and access Microsoft Graph api.

Now that I have the methods and controllers set up, the /me api call for graph returns user data.

I have made the service call setup in Angular to call the api, but I don't believe Microsoft Graph returns JSON response back to the user.

What is the correct way to retrieve the user data back into angular, so that I can display the information from the api call.

Graph Controller: enter image description here

Angular Service call

enter image description here

https://stackoverflow.com/questions/65402752/passing-microsoft-graph-api-calls-from-spring-boot-backend-to-angular December 22, 2020 at 11:07AM

没有评论:

发表评论