Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2019 17:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
How to set redirect URL for OpenID Connect middleware in MVC application
public void ConfigureAuth(IAppBuilder app)
app.UseCookieAuthentication(new CookieAuthenticationOptions());
new OpenIdConnectAuthenticationOptions
ClientId = clientId,
Authority = authority,
PostLogoutRedirectUri = postLogoutRedirectUri,
RedirectUri = ""
Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment