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

Auth modal URL fails with fitbit query #5

Open
briansoule opened this issue Jan 5, 2015 · 2 comments
Open

Auth modal URL fails with fitbit query #5

briansoule opened this issue Jan 5, 2015 · 2 comments

Comments

@briansoule
Copy link

2015-01-05 15:22:59.029 Rise Dev[66097:1064928] Auth Failed: Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo=0x7ee97b80 {NSErrorFailingURLStringKey=https://oauth.io/auth/fitbit?k=<_Our_Public_Key__>&redirect_uri=oauthio://localhost&mobile=true, NSErrorFailingURLKey=https://oauth.io/auth/fitbit?k=<__Our_Public_Key*_**>&redirect_uri=oauthio://localhost&mobile=true, NSLocalizedDescription=Could not connect to the server., NSUnderlyingError=0x7ee5ace0 "Could not connect to the server."}

@amichnia
Copy link

Hello
Got same issue, found, that it requires setting options for cache now. So, if you don't set this option (either false or true) - this might be the cause of trouble

OAuthIOModal *oAuthModal = [[OAuthIOModal alloc] initWithKey:OAuthPublicKey delegate:self];

NSMutableDictionary *options = [[NSMutableDictionary alloc] init];
[options setObject:@"false" forKey:@"cache"];

[oAuthModal showWithProvider:FitbitProvider options:options];

Best.

@mdarby
Copy link

mdarby commented Feb 4, 2015

Thank you @amichnia. I've been searching all afternoon for the cache tip.

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

3 participants