Ejemplo n.º 1
0
        private Task ChangeSecurityStampAsync(IdenityUser user)
        {
            user.SecurityStamp = SecurityUtil.CreateUniqueToken();

            if (_identityOptions.Events != null)
            {
                IdentitySecurityStampChangeContext context = new IdentitySecurityStampChangeContext(user.Guid);
                return(_identityOptions.Events.SecurityStampChangedAsync(context));
            }

            return(Task.CompletedTask);
        }
Ejemplo n.º 2
0
 public virtual Task SecurityStampChangedAsync(IdentitySecurityStampChangeContext context)
 {
     return(OnSecurityStampChanged(context));
 }