Skip to content

.Net Core SignOut() RedirectUri not working #28009

Closed
@TestO2015

Description

@TestO2015

I'm trying to do a SignOut with a redirect uri specified in the AuthenticationProperties. It redirects to the OIDC SignedOutCallbackPath I configured but doesn't make it to the RedirectURI.

    [HttpGet("Logout")]
    public async Task Logout()
    {
        var prop = new AuthenticationProperties()
        {
            RedirectUri = "http://google.com"
        };

        await HttpContext.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme, prop);
    }

Setup and info:

  • The app has Cookie and OpenId Connect authentication setup
  • Connects to Oracle IDCS.
  • Both HttpContext.SignOutAsync() and SignOut() have the same result.
  • A login via ChallengeRequest with a RedirectUri on the other hand works.

How does the Redirect URI actually work inside - ex. does it get sent to the Identity Provider and back? Any clues as to why this doesn't work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-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