mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #43] Callback URL #27
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Berdikhan on GitHub (Apr 7, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/43
Hi everyone
When I set the callback URL to my own application it gives error
Error Domain=NSURLErrorDomain Code=400 "HTTP Status 400: Bad Request, Response: oauth_problem=parameter_rejected&message=oauth_callback" UserInfo=0x7c8b4e80
But when I set the callback url to my website it works.
And another issue is that I cannot handle the access token and access token secret, I can only see it in a url attached such as "http://website.com?access_token=sdjflkdjsf&access_token_secret=asdasdasd"
If I do in this way everything works, except it does not show an alertView and cannot get an access token
Any ideas? Need help, thanks
@gabriel-jones commented on GitHub (Apr 12, 2015):
The callback url should be
oauth-swift://oauth-callback/application_name-- does this not work?@Berdikhan commented on GitHub (Apr 13, 2015):
Nope, I set the same URL as previous, just handled it from WebViewController. I saved tokens to NSUserDefaults. And created clients using saved tokens. Now it works fine