Пример #1
0
        public async Task RequestUserInfoReturnsUserInfo()
        {
            _restClient.NextExpectedResponse = _responses["user-info"];

            var result = await _mobileConnect.RequestUserInfoAsync(_discoveryResponse, "zaqwsxcderfvbgtyhnmjukilop", new MobileConnectRequestOptions());

            Assert.IsNotNull(result.IdentityResponse);
            Assert.AreEqual(MobileConnectResponseType.UserInfo, result.ResponseType);
        }
        private async void UserInfoButton_Click(object sender, RoutedEventArgs e)
        {
            var response = await _mobileConnect.RequestUserInfoAsync(_discoveryResponse, _token.AccessToken, new MobileConnectRequestOptions());

            await HandleResponse(response);
        }