Skip to content

Instantly share code, notes, and snippets.

@renatoeufe
Created November 18, 2015 05:16
Show Gist options
  • Save renatoeufe/18fe07da3447d7c4bc82 to your computer and use it in GitHub Desktop.
Save renatoeufe/18fe07da3447d7c4bc82 to your computer and use it in GitHub Desktop.
AspNetWebFormsInvokeIdSrvChallenge
if (!Request.IsAuthenticated)
{
HttpContext.Current.GetOwinContext().Authentication.Challenge(
new AuthenticationProperties
{
RedirectUri = "http://localhost:2671/Default"
},
OpenIdConnectAuthenticationDefaults.AuthenticationType);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment