public Task SignOutAsync(SignOutContext context) { if (PriorHandler != null) { return PriorHandler.SignOutAsync(context); } return Task.FromResult(0); }
public Task SignOutAsync(SignOutContext context) { throw new NotImplementedException(); }
public Task SignOutAsync(SignOutContext context) { SignedIn = false; context.Accept(); 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 Task SignOutAsync(SignOutContext context) { context.Accept(); return TaskCache.CompletedTask; }
public Task SignOutAsync(SignOutContext context) { // Not supported, fall through if (PriorHandler != null) { return PriorHandler.SignOutAsync(context); } return Task.FromResult(0); }