locked
web authentication broker failed to pass Tumblr OAuth RRS feed

  • Question

  • I like to use web authentication broker to get authorization from Tumblr API. But the result is

    AuthHost encountered a security problem: The certificate's CN name does not match the passed value. and will abort the navigation

    HRESULT: 0x800B010F

    I'd use online SSL checker to verify www.tumble.com and the server seems to be fine.

    async void OAuthAsync(string requestTokenKey)
        {
            string authorizeTokenUrl = "https://www.tumblr.com/oauth/authorize";
            
            System.Uri startURI =  new Uri(String.Format("{0}?oauth_token={1}", authorizeTokenUrl, requestTokenKey), UriKind.Absolute);
            System.Uri endURI = WebAuthenticationBroker.GetCurrentApplicationCallbackUri();
    
            string result;
    
            try
            {
                var webAuthenticationResult =
                    await Windows.Security.Authentication.Web.WebAuthenticationBroker.AuthenticateAsync(
                    Windows.Security.Authentication.Web.WebAuthenticationOptions.None,
                    startURI,
                    endURI);
    
                switch (webAuthenticationResult.ResponseStatus)
                {
                    case Windows.Security.Authentication.Web.WebAuthenticationStatus.Success:
                        // Successful authentication. 
                        result = webAuthenticationResult.ResponseData.ToString();
                        break;
                    case Windows.Security.Authentication.Web.WebAuthenticationStatus.ErrorHttp:
                        // HTTP error. 
                        result = webAuthenticationResult.ResponseErrorDetail.ToString();
                        break;
                    default:
                        // Other error.
                        result = webAuthenticationResult.ResponseData.ToString();
                        break;
                }
            }
            catch (Exception ex)
            {
                // Authentication failed. Handle parameter, SSL/TLS, and Network Unavailable errors here. 
                result = ex.Message;
            }
    
            System.Diagnostics.Debug.WriteLine(result);
    
        }

    Then I copied the startURI and put it to IE, and Tumblr allowed me to access. Is this a WAB issue?

    Any help will be appreciated. Thanks.



    • Edited by jamham Tuesday, May 19, 2015 5:33 AM
    Monday, May 18, 2015 7:09 AM

All replies

  • Ensure your app is associated with the Store and try again.

    Abdulwahab Suleiman

    Monday, May 18, 2015 2:41 PM
    Moderator