mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #345] Twitter OAuth throws Desktop applications only support the oauth_callback value 'oob' on iOS app #218
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#218
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 @MaikoHermans on GitHub (Mar 3, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/345
Description:
So I'm trying to get oauth2 working but that doesn't seem to work since it will show me a page saying
Where I have this piece of code
Then I moved on to trying it with oauth1 which gives me the error
Desktop applications only support the auth_callback value 'oob'while I'm obviously trying to do this from a iOS app.The code I have for this is as follows
I hope someone is able to tell me where I'm going wrong
OAuth Provider (Twitter):
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
x ] 8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Mar 5, 2017):
Did you declare in twitter website your callbackurl?
"https://oauthswift.herokuapp.com/callback/twitter" is juste for demo purpose, this redirect to oauthswift://, make your own url scheme
@MaikoHermans commented on GitHub (Mar 6, 2017):
Alright I'm a little fussy on what the callback URL should do. When I set the callbackurl in twitter it will let me load the authorization page without an error but it will then redirect me to the given url and I can't figure out how to just let it close.
@phimage commented on GitHub (Mar 6, 2017):
did you follow the readme?
add an url scheme to your app?
a callback is a callback, twitter call this url and then your app must get information using for instance the url scheme and calling OAuthSwift.handle(url: url)
@MaikoHermans commented on GitHub (Mar 7, 2017):
Yeah I figured it out I did set the url scheme just did it wrong because I added a
_in it that's why it wouldn't work.