public async Task SignOutAsync(SignOutContext context)
 {
     if (context.AuthenticationScheme == _options.Authentication.EffectiveAuthenticationScheme)
     {
         _sessionId.RemoveCookie();
     }
     await _handler.SignOutAsync(context);
 }
 public async Task SignOutAsync(SignOutContext context)
 {
     if (context.AuthenticationScheme == _options.AuthenticationOptions.EffectiveAuthenticationScheme)
     {
         await RaiseSignOutEventAsync();
     }
     await _handler.SignOutAsync(context);
 }
Esempio n. 3
0
        public async Task <IActionResult> Logout()
        {
            await authenticationHandler.SignOutAsync();

            return(RedirectToAction("Index", "Home"));
        }
Esempio n. 4
0
 public Task SignOutAsync(SignOutContext context)
 {
     return(_handler.SignOutAsync(context));
 }