Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not authenticate error 32 #95

Open
thecyberd3m0n opened this issue Feb 8, 2016 · 0 comments
Open

Could not authenticate error 32 #95

thecyberd3m0n opened this issue Feb 8, 2016 · 0 comments

Comments

@thecyberd3m0n
Copy link

I've got a serious problem with Twitter/Twitterizer. My code

private async Task VerifyTwitterAccessToken(string accessToken, string secret)
{
TwitterUserViewModel twitterUserVM = null;
Twitterizer.OAuthTokens oAuthTokens = new OAuthTokens();
oAuthTokens.AccessToken = ConfigurationManager.AppSettings["TwitterAccessToken"];
oAuthTokens.AccessTokenSecret = ConfigurationManager.AppSettings["TwitterTokenSecret"];
oAuthTokens.ConsumerKey = accessToken;
oAuthTokens.ConsumerSecret = secret;

    Twitterizer.VerifyCredentialsOptions verify = new VerifyCredentialsOptions();
    TwitterResponse<TwitterUser> twitterResponse = TwitterAccount.VerifyCredentials(oAuthTokens);
    if (twitterResponse.Result == RequestResult.Success)
    {
        twitterUserVM = new TwitterUserViewModel();
        twitterUserVM.name = twitterResponse.ResponseObject.Name;
    }
    return twitterUserVM;

}

In this version accessToken is authToken generated via Twitter Android SDK, which was sent to server. Server after that should verify token, get data and sign in the user. But after verifying in Twitter twitterResponse always contains "could not authenticate 32 error.".

I implemented similar authentication for Facebook and Google without serious problems, but it seems like Twitter outgrows me... Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant