Example #1
0
        public override async Task <bool> IsEmailConfirmedAsync(IdentityUser user)
        {
            ThrowIfDisposed();
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }
            CancellationToken cancellationToken = CancellationToken;

            return(UserManagerHelper.GetEmailConfirmed(_userApi.UserGet(user.Id), cancellationToken));
        }
Example #2
0
        public override async Task <IList <Claim> > GetClaimsAsync(IdentityUser user)
        {
            ThrowIfDisposed();
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }
            CancellationToken cancellationToken = CancellationToken;

            return(UserManagerHelper.GetClaims(_userRightsApi.UserRightsGetUserRights(user.Id), cancellationToken));
        }
Example #3
0
        public override async Task <IdentityUser> FindByNameAsync(string userName)
        {
            ThrowIfDisposed();
            if (userName == null)
            {
                throw new ArgumentNullException(nameof(userName));
            }
            userName = NormalizeKey(userName);
            CancellationToken cancellationToken = CancellationToken;

            return(UserManagerHelper.FindByName(_userApi.UserGetByLogin(userName), cancellationToken));
        }
Example #4
0
        public override async Task <string> GetPhoneNumberAsync(IdentityUser user)
        {
            ThrowIfDisposed();
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }

            CancellationToken cancellationToken = CancellationToken;

            return(UserManagerHelper.GetPhoneNumber(_userApi.UserGet(user.Id), cancellationToken));
        }