Giter Site home page Giter Site logo

OAuth - XAuth Login does not work about sttwitter HOT 6 CLOSED

nst avatar nst commented on August 18, 2024
OAuth - XAuth Login does not work

from sttwitter.

Comments (6)

nst avatar nst commented on August 18, 2024

I cannot reproduce the issue. XAuth login works for me at least this way:

STTwitterAPIWrapper *twitter =
[STTwitterAPIWrapper twitterAPIWithOAuthConsumerName:@""
                                         consumerKey:@""
                                      consumerSecret:@""
                                            username:@""
                                            password:@""];

[twitter verifyCredentialsWithSuccessBlock:^(NSString *userName) {
    NSLog(@"-- userName: %@", userName);
} errorBlock:^(NSError *error) {
}];

Please double-check your OAuth tokens and Twitter credentials, and post sample code if the problem persists.

from sttwitter.

teofiloisrael avatar teofiloisrael commented on August 18, 2024

After fix the tokens got another error. Still not able to indentify the line of the problem. I'm only testing the sample project for mac.

NSURLErrorDomain error -1012 - STTwitter[93615:303] Unhandled authentication challenge type - NSURLAuthenticationMethodOAuth2

image

from sttwitter.

nst avatar nst commented on August 18, 2024

XAuth authentication in the sample project works for me.

NSURLErrorDomain -1012 is an authentication issue.

Are you using a proxy server or something?

from sttwitter.

teofiloisrael avatar teofiloisrael commented on August 18, 2024

I do not use proxy and I'm on Mac OS X 10.8.3

from sttwitter.

byteslick avatar byteslick commented on August 18, 2024

Same issue for me too...
Unhandled authentication challenge type - NSURLAuthenticationMethodOAuth2
2013-07-10 01:39:46.956 MyDemo[56446:c07] Error: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0xb04fc90 {NSErrorFailingURLKey=https://api.twitter.com/oauth/access_token, NSErrorFailingURLStringKey=https://api.twitter.com/oauth/access_token}

I am using IOS sample. Please dont say its working for you in your demo project.

from sttwitter.

nst avatar nst commented on August 18, 2024

I was able to reproduce the issue by using consumer tokens that are not "xAuth-enabled".

Hence, I think both of you are using consumer tokens that are not "xAuth-enabled".

In order to use the xAuth authentication process (and bypass the PIN step), Twitter requires consumer tokens to be "xAuth-enabled".

You can read more on this on Twitter website https://dev.twitter.com/docs/oauth/xauth and contact Twitter to have your custom tokens enabled for the xAuth authentication process.

Thank you for taking the time to report the issue.

I will add something about that in the project's README.

from sttwitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.