/// <summary>
 /// Request identity using the access token returned by <see cref="RequestTokenAsync(HttpRequestMessage, DiscoveryResponse, Uri, string, string, MobileConnectRequestOptions)"/>
 /// </summary>
 /// <param name="request">Originating web request</param>
 /// <param name="discoveryResponse">The response returned by the discovery process</param>
 /// <param name="accessToken">Access token returned from RequestToken required to authenticate the request</param>
 /// <param name="options">Optional parameters</param>
 /// <returns>MobileConnectStatus object with requested Identity information</returns>
 public async Task <MobileConnectStatus> RequestPremiumInfoAsync(
     HttpRequestMessage request,
     DiscoveryResponse discoveryResponse,
     string accessToken,
     MobileConnectRequestOptions options)
 {
     return(await MobileConnectInterfaceHelper.RequestPremiumInfo(
                _identity, discoveryResponse, accessToken, _config, options));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Syncronous wrapper for <see cref="RequestPremiumInfoAsync"/>
 /// </summary>
 /// <param name="discoveryResponse">The response returned by the discovery process</param>
 /// <param name="accessToken">Access token from RequestToken stage</param>
 /// <param name="options">Additional optional parameters</param>
 /// <returns>MobileConnectStatus object with UserInfo information</returns>
 public MobileConnectStatus RequestPremiumInfo(
     DiscoveryResponse discoveryResponse, string accessToken, MobileConnectRequestOptions options)
 {
     return(MobileConnectInterfaceHelper.RequestPremiumInfo(
                _identity, discoveryResponse, accessToken, _config, options).Result);
 }