Beispiel #1
0
        public async Task <TUser> FindByLoginAsync(string loginProvider, string providerKey, CancellationToken cancellationToken)
        {
            if (string.IsNullOrEmpty(loginProvider))
            {
                throw new ArgumentNullException(nameof(loginProvider));
            }

            if (string.IsNullOrEmpty(providerKey))
            {
                throw new ArgumentNullException(nameof(providerKey));
            }

            TUserKey userId = userLoginTable.FindByProviderAndKey(loginProvider, providerKey);

            return(await userTable.GetUserById(userId, cancellationToken) as TUser);
        }