I found a lot number of examples how o do this. https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-azure-active-directory?view=aspnetcore-6.0 And it works fine when I run it locally in debug.
Everything is fine, until I want to publish the application up to an Azure APP Service.
- I create an App Service and connect the server registration to it
- I add on the client registration the URL of the APP Service https://xxxxx.azurewebsites.net/authentication/login-callback
- In Visual Studio 2022 I publish the server application up to the App Service
To my surprise, the application does not work from the published site...
I get the response:
Sign in
Sorry, but we’re having trouble signing you in.AADSTS700054: response_type 'id_token' is not enabled for the application.
I can not find an example that go all the way to a published APP service...
So what is wrong in my thinking here?