skip to Main Content

Azure – Calling an ASP.NET Core Web API integrated to EntraId app from another .NET Core console app integrated to EntraId app fails

I have created an ASP.NET Core Web API and registered it in EntraID and configured it in my program.cs as follows: builder.Services .AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddMicrosoftIdentityWebApi(builder.Configuration.GetSection("AzureAd")); builder.Services.AddAuthorization(); Then I have registered another app in the EntraId and configured the code in the…

VIEW QUESTION

Azure – MSAL AcquireTokenInteractive redirects browser to unavaible localhost

We are using AcquireTokenInteractive to connect to EWS 365 like this: // using Microsoft.Identity.Client 4.61.1 var pca = PublicClientApplicationBuilder .CreateWithApplicationOptions(pcaOptions) // userId, tennantid .WithDefaultRedirectUri() .Build(); ... var result = await pca.AcquireTokenInteractive(ewsScopes).ExecuteAsync(); This is more or less what the example code…

VIEW QUESTION
Back To Top
Search