示例#1
0
        public async Task SignOutAsync(SignOutContext context)
        {
            if (ShouldHandleScheme(context.AuthenticationScheme, handleAutomatic: false))
            {
                SignOutAccepted = true;
                await HandleSignOutAsync(context);

                Logger.AuthenticationSchemeSignedOut(Options.AuthenticationScheme);
                context.Accept();
            }
            else if (PriorHandler != null)
            {
                await PriorHandler.SignOutAsync(context);
            }
        }
示例#2
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);
            }
        }
示例#3
0
 public Task SignOutAsync(SignOutContext context)
 {
     SignedIn = false;
     context.Accept();
     return(Task.FromResult(0));
 }
示例#4
0
 public Task SignOutAsync(SignOutContext context)
 {
     context.Accept();
     return(Task.CompletedTask);
 }