示例#1
0
        public async Task <User> Authenticate(string accessToken)
        {
            var userInfoResult = await _client.GetUserInfoAsync(accessToken);

            if (userInfoResult.IsError)
            {
                throw new AccessTokenException();
            }

            return(GetUserInfo(userInfoResult.Claims));
        }