[GH-ISSUE #57] Add support for Uber Authentication #34

Closed
opened 2026-03-03 16:45:00 +03:00 by kerem · 11 comments
Owner

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/

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/
kerem closed this issue 2026-03-03 16:45:00 +03:00
Author
Owner

@sephethus commented on GitHub (Aug 1, 2015):

I second this request!!

<!-- gh-comment-id:126928498 --> @sephethus commented on GitHub (Aug 1, 2015): I second this request!!
Author
Owner

@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 ;)

<!-- gh-comment-id:126938621 --> @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 ;)
Author
Owner

@sephethus commented on GitHub (Aug 1, 2015):

There's a framework to connect to uber?

<!-- gh-comment-id:126942908 --> @sephethus commented on GitHub (Aug 1, 2015): There's a framework to connect to uber?
Author
Owner

@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 ...

<!-- gh-comment-id:126943566 --> @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 ...
Author
Owner

@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.

<!-- gh-comment-id:126944314 --> @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.
Author
Owner

@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#>)

<!-- gh-comment-id:126944343 --> @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#>) `
Author
Owner

@phimage commented on GitHub (Aug 1, 2015):

for code use markdown `

let oauth...

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

<!-- gh-comment-id:126946810 --> @phimage commented on GitHub (Aug 1, 2015): for code use markdown ` ``` swift let oauth... ``` 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
Author
Owner

@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

<!-- gh-comment-id:127036085 --> @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
Author
Owner

@phimage commented on GitHub (Aug 2, 2015):

Missing ,parameters after credential in success closure
...See all oauth2 example

I make a pr to have the samething for oauth1 (to keep coherence)

<!-- gh-comment-id:127041910 --> @phimage commented on GitHub (Aug 2, 2015): Missing `,parameters` after credential in success closure ...See all oauth2 example I make a pr to have the samething for oauth1 (to keep coherence)
Author
Owner

@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.

<!-- gh-comment-id:127042378 --> @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.
Author
Owner

@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

<!-- gh-comment-id:129721336 --> @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
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#34
No description provided.