Move a nullref check to base class
This commit is contained in:
parent
a79a0360c1
commit
3a5df89f1c
|
|
@ -152,11 +152,6 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
|
|||
/// <returns>A task executing the sign out procedure</returns>
|
||||
protected override async Task HandleSignOutAsync(SignOutContext context)
|
||||
{
|
||||
if (context == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(context));
|
||||
}
|
||||
|
||||
Logger.EnteringOpenIdAuthenticationHandlerHandleSignOutAsync(GetType().FullName);
|
||||
|
||||
if (_configuration == null && Options.ConfigurationManager != null)
|
||||
|
|
|
|||
|
|
@ -288,6 +288,11 @@ namespace Microsoft.AspNetCore.Authentication
|
|||
|
||||
public async Task SignOutAsync(SignOutContext context)
|
||||
{
|
||||
if (context == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(context));
|
||||
}
|
||||
|
||||
if (ShouldHandleScheme(context.AuthenticationScheme, handleAutomatic: false))
|
||||
{
|
||||
SignOutAccepted = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue