/// <summary>
        /// Creates an authorization url with parameters to begin the authetication process
        /// </summary>
        /// <param name="request">Originating web request</param>
        /// <param name="discoveryResponse">The response returned by the discovery process</param>
        /// <param name="encryptedMSISDN">Encrypted MSISDN/Subscriber Id returned from the Discovery process</param>
        /// <param name="state">Unique string to be used to prevent Cross Site Forgery Request attacks during request token process (defaults to guid if not supplied, value will be returned in MobileConnectStatus object)</param>
        /// <param name="nonce">Unique string to be used to prevent replay attacks during request token process (defaults to guid if not supplied, value will be returned in MobileConnectStatus object)</param>
        /// <param name="options">Optional parameters</param>
        /// <returns>MobileConnectStatus object with required information for continuing the mobileconnect process</returns>
        public MobileConnectStatus StartAuthentication(HttpRequestMessage request, DiscoveryResponse discoveryResponse, string encryptedMSISDN, string state, string nonce, MobileConnectRequestOptions options)
        {
            state = string.IsNullOrEmpty(state) ? Security.GenerateSecureNonce() : state;
            nonce = string.IsNullOrEmpty(nonce) ? Security.GenerateSecureNonce() : nonce;

            return(MobileConnectInterfaceHelper.StartAuthentication(_authentication, discoveryResponse, encryptedMSISDN, state, nonce, _config, options));
        }
示例#2
0
 /// <summary>
 /// Creates an authorization url with parameters to begin the authorization process
 /// </summary>
 /// <param name="discoveryResponse">The response returned by the discovery process</param>
 /// <param name="encryptedMSISDN">Encrypted MSISDN/Subscriber Id returned from the Discovery process</param>
 /// <param name="state">Unique state value, this will be returned by the authorization process and should be checked for equality as a security measure</param>
 /// <param name="nonce">Unique value to associate a client session with an id token</param>
 /// <param name="options">Optional parameters</param>
 /// <returns>MobileConnectStatus object with required information for continuing the mobileconnect process</returns>
 public MobileConnectStatus StartAuthentication(
     DiscoveryResponse discoveryResponse,
     string encryptedMSISDN,
     string state,
     string nonce,
     MobileConnectRequestOptions options,
     string version)
 {
     return(MobileConnectInterfaceHelper.StartAuthentication(
                _authentication, discoveryResponse, encryptedMSISDN, state, nonce, _config, options, version));
 }