private async Task <UserInformationReceivedContext> RunUserInformationReceivedEventAsync(AuthenticationTicket ticket, OpenIdConnectMessage message, JObject user)
        {
            Logger.UserInformationReceived(user.ToString());

            var userInformationReceivedContext = new UserInformationReceivedContext(Context, Options)
            {
                Ticket          = ticket,
                ProtocolMessage = message,
                User            = user,
            };

            await Options.Events.UserInformationReceived(userInformationReceivedContext);

            if (userInformationReceivedContext.HandledResponse)
            {
                Logger.UserInformationReceivedHandledResponse();
            }
            else if (userInformationReceivedContext.Skipped)
            {
                Logger.UserInformationReceivedSkipped();
            }

            return(userInformationReceivedContext);
        }
Esempio n. 2
0
 /// <summary>
 /// Invoked when user information is retrieved from the UserInfoEndpoint.
 /// </summary>
 public virtual Task UserInformationReceived(UserInformationReceivedContext context) => OnUserInformationReceived(context);
 public override Task UserInformationReceived(UserInformationReceivedContext context)
 {
     return base.UserInformationReceived(context);
 }
Esempio n. 4
0
 public virtual Task UserInformationReceived(UserInformationReceivedContext context) => OnUserInformationReceived(context);