-
Given a Blazor Server App (netcore 3.1) that is protected by the Microsoft Identity Platform utilising Azure AD with a single tenant. I wish to expose an ApiController listening to HTTP calls so that daemon apps can consume some functionality of the Blazor Server App. HTTP requests would have an Authorization header along with a JWT Bearer token. My question is: can Blazor serve both consumers? Not only humans with a browser but daemon apps as well? Utilising the Authentication/Authorization functionality provided by the Microsoft.Identity.Web library?
Startup.cs has the regular registrations, such as:
Then it breaks the Microsoft.Identity.Web's functionality (the cookie is not set, user not signed in, after successful login and the redirect from Azure AD the front end gives HTTP ERROR 401) Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Found out, yes you can combine, but then have to explicitly say which one is the default :)
|
Beta Was this translation helpful? Give feedback.
Found out, yes you can combine, but then have to explicitly say which one is the default :)