[GH-ISSUE #474] Callback URL for Twitter? #310

Closed
opened 2026-03-03 16:47:36 +03:00 by kerem · 6 comments
Owner

Originally created by @jonnyijapan on GitHub (Jun 26, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/474

What is the callback URL used for Twitter?

Recently Twitter has started to require a callback URL for OAuth 1.0a.

Originally created by @jonnyijapan on GitHub (Jun 26, 2018). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/474 What is the callback URL used for Twitter? Recently Twitter has started to require a callback URL for OAuth 1.0a.
kerem closed this issue 2026-03-03 16:47:36 +03:00
Author
Owner

@phimage commented on GitHub (Jun 26, 2018):

Recently? Callback url is necessary to get the access token to the api. 👿
It is your own url to get it (http server or application url scheme)
Please read the README and wiki

<!-- gh-comment-id:400249055 --> @phimage commented on GitHub (Jun 26, 2018): Recently? Callback url is necessary to get the access token to the api. 👿 It is your own url to get it (http server or application url scheme) Please read the README and wiki
Author
Owner

@jonnyijapan commented on GitHub (Jun 26, 2018):

I mean for the demo - I see now that the existing one is http://oauthswift.herokuapp.com/callback/twitter
but we have to set it to the app one, should be something like oauth-swift://oauth-callback/twitter ?

And this has to be whitelisted at apps.twitter.com

<!-- gh-comment-id:400249742 --> @jonnyijapan commented on GitHub (Jun 26, 2018): I mean for the demo - I see now that the existing one is `http://oauthswift.herokuapp.com/callback/twitter` but we have to set it to the app one, should be something like `oauth-swift://oauth-callback/twitter` ? And this has to be whitelisted at apps.twitter.com
Author
Owner

@phimage commented on GitHub (Jun 26, 2018):

This one is for the demo app, an application with url scheme oauth-swift
You must have your own (please read readme...)

and yes you must white list some urls for some providers, and twitter I think need it

<!-- gh-comment-id:400250934 --> @phimage commented on GitHub (Jun 26, 2018): This one is for the demo app, an application with url scheme oauth-swift You must have your own (please read readme...) and yes you must white list some urls for some providers, and twitter I think need it
Author
Owner

@jonnyijapan commented on GitHub (Jun 26, 2018):

The wiki says

Some API does'nt accept custom url scheme (ex: myapp://) into callback URL (ex: Linkedin oauth v2, Twitter oauth v1), only http is accepted

which isn't really true anymore for Twitter. They now allow and require custom url schemes for apps. https://twittercommunity.com/t/action-required-sign-in-with-twitter-users-must-whitelist-callback-urls/105342

<!-- gh-comment-id:400251072 --> @jonnyijapan commented on GitHub (Jun 26, 2018): The wiki says > Some API does'nt accept custom url scheme (ex: myapp://) into callback URL (ex: Linkedin oauth v2, Twitter oauth v1), only http is accepted which isn't really true anymore for Twitter. They now allow and require custom url schemes for apps. https://twittercommunity.com/t/action-required-sign-in-with-twitter-users-must-whitelist-callback-urls/105342
Author
Owner

@phimage commented on GitHub (Jun 26, 2018):

@jonnyijapan I do not see where custom url scheme(ie. oauthswift:// for the demo app) must be used in the link
this talk only about white listed callback urls or I miss something

<!-- gh-comment-id:400322220 --> @phimage commented on GitHub (Jun 26, 2018): @jonnyijapan I do not see where custom url scheme(ie. oauthswift:// for the demo app) must be used in the link this talk only about white listed callback urls or I miss something
Author
Owner

@phimage commented on GitHub (Jun 26, 2018):

my app setup in twitter
screen shot 2018-06-26 at 16 09 02

<!-- gh-comment-id:400322805 --> @phimage commented on GitHub (Jun 26, 2018): my app setup in twitter ![screen shot 2018-06-26 at 16 09 02](https://user-images.githubusercontent.com/8875768/41917736-54019470-795b-11e8-9678-6088ac42e1d9.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#310
No description provided.