Error:
Message : An error was encountered while handling the remote login.
Trace:
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler\u00601.HandleRequestAsync()\r\n
at IdentityServer4.Hosting.FederatedSignOut.AuthenticationRequestHandlerWrapper.HandleRequestAsync()\r\n
Nothing in my browser logs just a 500 on Squidex’s OIDC when response come back from Microsoft API.
I’ll try to changes some options like ID_Tokens and so on for testing purposes
After few hours of trying to changes options nothing seems to work…
I finally decided to clone the repository and I’ve added an override Task RemoteFailure (RemoteFailureContext context) on MicrosoftHandler for better understanding.
Now I can see that the underlying error is: “An error occurred when retrieving Microsoft user information (Forbidden). Please check if the authentication information is correct and the corresponding Microsoft Account API is enabled”.
I’m stuck at this point because the only scope requested that I can see is https://graph.microsoft.com/user.read and it’s already granted in API permissions …
Account API means nothing in particular… It’s Microsoft Graph and permissions.
I’m done for today, I’ll try to investigate more tomorrow, thanks for your help, I’ll keep you informed if I’m getting this stuff work.
Had to pause work on this, but finally found some time again.
The issue was, that I’ve always created a Single Page Application in Azure instead of a Web App. Don’t know why, but I’ve always assumed it to be the right choice.