protected override async Task HandleSignInAsync(SignInContext signIn)
        {
            var signingInContext = new BearerSigningInContext(Context, Options, signIn.Principal, new AuthenticationProperties(signIn.Properties));
            await Options.Events.SigningIn(signingInContext);

            var ticket = new AuthenticationTicket(signingInContext.Principal, signingInContext.Properties, Options.AuthenticationScheme);

            ApplyBearer(ticket);

            var signedInContext = new BearerSignedInContext(Context, Options, signingInContext.Principal, signingInContext.Properties);
            await Options.Events.SignedIn(signedInContext);
        }
Ejemplo n.º 2
0
 public Task SignedIn(BearerSignedInContext context)
 {
     return(OnSignedIn(context));
 }