mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #181] Redirect URI hostname must match #106
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#106
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 @rustanacexd on GitHub (Feb 9, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/181
I am using oauth2 for eventbrite but I am getting this error: ``Redirect URI hostname must match`
here is my code
This is my url scheme - http://take.ms/f9Q0y
@phimage commented on GitHub (Feb 9, 2016):
Maybe you must declare the callback URL into evenbrite website. Many
providers want you to declare an URL white list
From doc :
@phimage commented on GitHub (Feb 9, 2016):
a google search show you that it's an Eventbrite message
and maybe custom url scheme is not supported yet (ie. Tara://)
https://twitter.com/eventbriteapi/status/590861041317187587
If callback/redirect url must be http
https://github.com/OAuthSwift/OAuthSwift/wiki/API-with-only-HTTP-scheme-into-callback-URL
@rustanacexd commented on GitHub (Feb 9, 2016):
@phimage thanks i'll check it out.
@rustanacexd commented on GitHub (Feb 10, 2016):
so I have this code
and then implemented a UIWebView
I get this error -
No access_token, no code and no error provided by servercan you tell me what's wrong?
@phimage commented on GitHub (Feb 10, 2016):
next time please open an other issue
handle method must not call OAuthSwift.handleOpenURL()
handle must load the url to a web view to let user login and authorize
then the website/provider will redirect to the callback url passed as argument (and OAuthSwift.handleOpenURL() will be call with an url containing information like token, using url scheme, or web view delegate)
then it's better to put a view controller as OAuthSwiftURLHandlerType instead of the view itself
see demo code or readme