-
Notifications
You must be signed in to change notification settings - Fork 30
Uber
Damien edited this page May 26, 2016
·
3 revisions
let uber: Provider = .Uber(
clientID: "***",
clientSecret: "***",
redirectURL: "foo://callback"
)
{
"access_token": "EE1IDxytP04tJ767GbjH7ED9PpGmYvL",
"token_type": "Bearer",
"expires_in": 2592000,
"refresh_token": "Zx8fJ8qdSRRseIVlsGgtgQ4wnZBehr",
"scope": "profile history"
}
Scope | Description | Type |
---|---|---|
|
Parameter | Description |
---|---|
response_type |
OAuth 2.0 response type. code is the only acceptable input at this time. |
client_id |
The client ID of your application. |
scope (optional) |
Space delimited list of grant scopes you would like to have permission to access on behalf of the user. If none are provided the default is the set selected in your application's dashboard. It is invalid to provide no scopes and have none selected in the dashboard. |
state (optional) |
State which will be passed back to you to prevent tampering. |
redirect_uri (optional) |
The URI we will redirect back to after an authorization by the resource owner. The base of the URI must match the redirect_uri used during the registration of your application. If none is provided the default is the first redirect URI provided in the application's dashboard. |
curl -F 'client_secret=YOUR_CLIENT_SECRET' \
-F 'client_id=YOUR_CLIENT_ID' \
-F 'grant_type=authorization_code' \
-F 'redirect_uri=YOUR_REDIRECT_URI' \
-F 'code=AUTHORIZATION_CODE_FROM_STEP_2' \
https://login.uber.com/oauth/v2/token