mercredi 3 mars 2021

.NET Core Web API - Get user details from Azure AD token

Using this tutorial as a guide: https://github.com/Azure-Samples/ms-identity-javascript-angular-spa-aspnetcore-webapi

In the web api we need to obtain the users details (for audit purposes we want to record the details of the user in the database).

In the web api, is there a way to decode the azure token to obtain the user details? Or we could simply pass the user email from the client browser in each request also be feasible (this is easily accessible using the MSAL library for Angular)




Aucun commentaire:

Enregistrer un commentaire