mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #57] Add support for Uber Authentication #34
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#34
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 @alikazim on GitHub (Apr 30, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/57
Please add Uber User Authentication
https://developer.uber.com/v1/auth/
@sephethus commented on GitHub (Aug 1, 2015):
I second this request!!
@phimage commented on GitHub (Aug 1, 2015):
Have you try to use the framework to connect to uber?
There is issue?
If not, this not an "issue" and an "add support" => just add uber to the demo projects
If someone that use uber and OAuthSwift with success, please PR ;)
@sephethus commented on GitHub (Aug 1, 2015):
There's a framework to connect to uber?
@phimage commented on GitHub (Aug 1, 2015):
OAuthSwift is the OAuth swift framework...
Uber is OAUTH 2.0, so try it if you need it ...
@sephethus commented on GitHub (Aug 1, 2015):
Oh yeah I already have the OAuthSwift framework I'm past that point. I'm trying to get uber to authenticate my user account with my app and I'm totally failing. I need examples for connecting with uber. I don't know if I'm doing the redirect_uri correctly, I don't know what to put for state or params or scope. I set up the url schema part with my app name, but other than that I'm stuck.
@sephethus commented on GitHub (Aug 1, 2015):
let oauthUber = OAuth2Swift(consumerKey: CLIENT_KEY, consumerSecret: CLIENT_SECRET, authorizeUrl: REGISTER_URL, accessTokenUrl: ACCESS_TOKEN_URL, responseType: "code") let encodedRedirectURI = REDIRECT_URI.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding) oauthUber.authorizeWithCallbackURL(REDIRECT_URI, scope: <#String#>, state: <#String#>, params: <#Dictionary<String, String>#>, success: <#TokenSuccessHandler##(credential: OAuthSwiftCredential, response: NSURLResponse?, parameters: NSDictionary) -> Void#>, failure: <#((error: NSError) -> Void)##(error: NSError) -> Void#>)@phimage commented on GitHub (Aug 1, 2015):
for code use markdown `
for redirect URI see all examples in demo, its an url handled by your application or with custom protocol to be opened by your application
sometimes the url need to be declared into the website (dropbox, ...)
for scope see OAuth doc and Uber api (keywork to ask permission : generally read, etc..., for uber in example there is profile history)
I think this issue could be closed @dongri, already one here #59 talking about uber and problem
@sephethus commented on GitHub (Aug 2, 2015):
I still get an error message with OAuthSwift that will not compile. See here: http://stackoverflow.com/questions/31765401/how-do-i-authorize-my-uber-account-in-swift-using-oauthswift
@phimage commented on GitHub (Aug 2, 2015):
Missing
,parametersafter credential in success closure...See all oauth2 example
I make a pr to have the samething for oauth1 (to keep coherence)
@sephethus commented on GitHub (Aug 2, 2015):
I don't see that in the example anywhere. I added parameters back to the authorizeWithCallbackURL but I don't see what the parameters do or what their purpose is since I never set them anywhere. Adding it to the success closure does get rid of the error. Thanks.
@phimage commented on GitHub (Aug 11, 2015):
@alikazim please close this generic issue
There is other issues with real information about uber problem like #59