Validating Access Token in ASP.NET Core Web API project

61 views Asked by At

I have two applications: one is an ASP.NET Core Web API and the other is a Maui Blazor application.

I successfully logged into Azure using PublicClientApplicationBuilder with my client ID. However, I'm encountering an issue with the access token.

I want to utilize the same access token that I obtained and send it to my API project for authentication. Is this achievable? If so, could someone provide me with an example of how to configure the program.cs file in the API project to validate the access token?

0

There are 0 answers