예제 #1
0
        public async Task <IdentityUser> FindByLoginAsync(string loginProvider, string providerKey, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            try
            {
                var result = await _userRepository.GetByUserLoginAsync(loginProvider, providerKey);

                return(result);
            }
            catch (Exception ex)
            {
                Logging.LogException(ex);

                return(null);
            }
        }