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

404/Not Found in OAuth Flow #16

Closed
krisdigital opened this issue Apr 26, 2013 · 7 comments
Closed

404/Not Found in OAuth Flow #16

krisdigital opened this issue Apr 26, 2013 · 7 comments

Comments

@krisdigital
Copy link

Cool that you just dropped the tumblr sdk right now when I needed it! Thank's ;)

Anyway, I get a 404 page during the OAuth Flow and I can't figure out why this happens..

I added the sdk via CocoaPods.

I am just using these lines like said in the readme:

[TMAPIClient sharedInstance].OAuthConsumerKey = @"xxxxxxxxx";
[TMAPIClient sharedInstance].OAuthConsumerSecret = @"xxxxxxxxxx";

[[TMAPIClient sharedInstance] authenticate:@"boutiquiee_tumblr" callback:^(NSError *error) {
        // You are now authenticated (if !error)
        NSLog(@"error: %@", error);
    }];

After Safari starts and I hit allow or deny it ends at the url

http://www.tumblr.com/oauth/boutiquiee_tumblr/tumblr-authorize?oauth_token=xxxx&oauth_verifier=xxxx

which gives a 404 Error page..

Any idea what could be the issue?

@irace
Copy link
Contributor

irace commented Apr 26, 2013

Hi, thanks for letting me know about this. I'm looking into it now and will let you know what I can find.

@krisdigital
Copy link
Author

Thank you! If you need any infos let me know!

@irace
Copy link
Contributor

irace commented Apr 26, 2013

So it seems to be a problem with having an underscore in your URL scheme. We're still looking into why underscores appear to be problematic (as far as I know, it should work), but you can temporarily get around this by just not using one.

@krisdigital
Copy link
Author

It works! Super cool. This would probably have been the last place that I would have been looking for the error.. Thank you for looking into it!

@irace
Copy link
Contributor

irace commented Apr 26, 2013

No problem, I'll leave this issue open until we figure out why exactly the server doesn't seem to like underscores.

@krisdigital
Copy link
Author

According to this thread underscores are not allowed! http://stackoverflow.com/questions/9142309/may-url-scheme-contain-an-underscore

So you are probably handling it right, and I have learned another lesson...

@irace
Copy link
Contributor

irace commented Apr 26, 2013

Well look at that. Thanks!

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

2 participants