MicrosoftIdentity/Account/SignedOut show as 404

发布时间 2023-09-04 15:05:28作者: ChuckLu

Answer from Google Bard

The error 404 means that the page "MicrosoftIdentity/Account/SignedOut" cannot be found. This can happen for a few reasons:

  • The page does not exist.
  • The page is not accessible to the user.
  • There is a problem with the routing configuration.

To fix this error, you need to check the following:

  • Make sure that the page "MicrosoftIdentity/Account/SignedOut" exists.
  • Make sure that the user has permission to access the page.
  • Check the routing configuration to make sure that the page is accessible.

If you are still getting the error 404, you can try the following:

  • Clear the browser cache and cookies.
  • Try a different browser.
  • Contact the site administrator for help.

Here are some specific solutions that have worked for other people:

  • If you are using the Microsoft.AspNetCore.Authentication.AzureAD.UI package, you can fix the error by adding the [AllowAnonymous] attribute to the SignOut action in the AccountController.
  • If you are using the Microsoft Identity package, you can fix the error by adding the endpoints.MapRazorPages(); method to the Configure method in Startup.cs.

 

add the missing endpoints.MapRazorPages() in startup.cs works for me