Skip to content

OpenIdConnect signout-callback-oidc stays blank #66241

@Ben555555

Description

@Ben555555

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I'm using the following API-endpoint to sign out from my SPA:

[HttpGet("[action]")]
public ActionResult Logout()
{
    return SignOut(new AuthenticationProperties { RedirectUri = "http://localhost:4200/authentication/login" },
        CookieAuthenticationDefaults.AuthenticationScheme,
        "MyScheme");
}

I also enabled SaveTokens in the OpenidConnect options.
Here is what happens

Why isn't it redirecting to the RedirectUri I passed in the SignOut method? It seems to be completely ignored. Only solution I found is to use the "OnRedirectToIdentityProviderForSignOut" event to manually set the post_logout_redirect_uri directly to the final RedirectUri.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

10.0.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-authIncludes: Authn, Authz, OAuth, OIDC, Bearerquestion

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions