#307 Assume notifications are not null.
This commit is contained in:
parent
4b1f710c39
commit
0f115f1fda
|
|
@ -89,8 +89,6 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
|
|||
message.PostLogoutRedirectUri = Options.PostLogoutRedirectUri;
|
||||
}
|
||||
|
||||
if (Options.Notifications.RedirectToIdentityProvider != null)
|
||||
{
|
||||
var redirectToIdentityProviderNotification = new RedirectToIdentityProviderNotification<OpenIdConnectMessage, OpenIdConnectAuthenticationOptions>(Context, Options)
|
||||
{
|
||||
ProtocolMessage = message
|
||||
|
|
@ -109,7 +107,6 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
|
|||
}
|
||||
|
||||
message = redirectToIdentityProviderNotification.ProtocolMessage;
|
||||
}
|
||||
|
||||
if (Options.AuthenticationMethod == OpenIdConnectAuthenticationMethod.RedirectGet)
|
||||
{
|
||||
|
|
@ -223,8 +220,6 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
|
|||
}
|
||||
}
|
||||
|
||||
if (Options.Notifications.RedirectToIdentityProvider != null)
|
||||
{
|
||||
var redirectToIdentityProviderNotification =
|
||||
new RedirectToIdentityProviderNotification<OpenIdConnectMessage, OpenIdConnectAuthenticationOptions>(Context, Options)
|
||||
{
|
||||
|
|
@ -249,7 +244,6 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
|
|||
}
|
||||
|
||||
message = redirectToIdentityProviderNotification.ProtocolMessage;
|
||||
}
|
||||
|
||||
var redirectUriForCode = message.RedirectUri;
|
||||
if (string.IsNullOrEmpty(redirectUriForCode))
|
||||
|
|
|
|||
Loading…
Reference in New Issue