public void SignOut(SignOutContext context) { if (PriorHandler != null) { PriorHandler.SignOut(context); } }
public Task SignOutAsync(SignOutContext context) { if (PriorHandler != null) { return PriorHandler.SignOutAsync(context); } return Task.FromResult(0); }
public Task SignOutAsync(SignOutContext context) { SignedIn = false; context.Accept(); return Task.FromResult(0); }
public Task SignOutAsync(SignOutContext context) { throw new NotImplementedException(); }
protected override Task HandleSignOutAsync(SignOutContext context) { return Task.FromResult(0); }
public override async Task SignOutAsync([NotNull] string authenticationScheme, AuthenticationProperties properties) { var handler = HttpAuthenticationFeature.Handler; var signOutContext = new SignOutContext(authenticationScheme, properties?.Items); if (handler != null) { await handler.SignOutAsync(signOutContext); } if (!signOutContext.Accepted) { throw new InvalidOperationException($"The following authentication scheme was not accepted: {authenticationScheme}"); } }
public virtual void SignOut(SignOutContext context) { if (ShouldHandleScheme(context.AuthenticationScheme)) { SignInContext = null; SignOutContext = context; context.Accept(); } if (PriorHandler != null) { PriorHandler.SignOut(context); } }
public Task SignOutAsync(SignOutContext context) { return Task.FromResult(0); }
public Task SignOutAsync(SignOutContext context) { // Not supported, fall through if (PriorHandler != null) { return PriorHandler.SignOutAsync(context); } return Task.FromResult(0); }
public override async Task SignOutAsync(string authenticationScheme, AuthenticationProperties properties) { if (string.IsNullOrEmpty(authenticationScheme)) { throw new ArgumentException(nameof(authenticationScheme)); } var handler = HttpAuthenticationFeature.Handler; var signOutContext = new SignOutContext(authenticationScheme, properties?.Items); if (handler != null) { await handler.SignOutAsync(signOutContext); } if (!signOutContext.Accepted) { throw new InvalidOperationException($"No authentication handler is configured to handle the scheme: {authenticationScheme}"); } }
public void SignOut(SignOutContext context) { throw new NotImplementedException(); }
protected virtual Task HandleSignOutAsync(SignOutContext context) { return Task.FromResult(0); }
public async Task SignOutAsync(SignOutContext context) { if (ShouldHandleScheme(context.AuthenticationScheme)) { SignOutAccepted = true; await HandleSignOutAsync(context); context.Accept(); } if (PriorHandler != null) { await PriorHandler.SignOutAsync(context); } }