Skip to content

Microsoft Entra ID external login redirect to /signin-microsoft returns resource not found #65257

@9989663675

Description

@9989663675

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After successful authentication with Microsoft Entra ID, the user is redirected
to the configured redirect URI (/signin-microsoft) with a valid authorization
code and state.

However, the browser displays the error:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

Expected Behavior

After redirect, the application should successfully exchange the authorization
code for tokens and complete external login.

Steps To Reproduce

  1. User clicks "Sign in with Microsoft"
  2. User authenticates successfully in Entra ID
  3. Entra ID redirects back to https://login.smartcursors.com/signin-microsoft?code=...
  4. Application shows "resource not found" error

Exceptions (if any)

After redirect, the application should successfully exchange the authorization
code for tokens and complete external login.

.NET Version

dotnet core 2.0

Anything else?

This application is not using .NET Core 2.0 or IdentityServer4.
We are using ASP.NET Core Identity with Microsoft Entra ID as an external login provider.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issuearea-authIncludes: Authn, Authz, OAuth, OIDC, Bearer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions