【发布时间】:2014-10-16 21:52:22
【问题描述】:
我知道 OAuth 2.0 规范允许在请求或发出令牌时指定多个范围,但 Uber 不喜欢多个范围。
例如:
1) [无错误]
参数 = {
'response_type': 'code',
'redirect_uri': 'INSERT_ROUTE_TO_STEP_TWO',
'scope': 'profile',
}
返回正确的令牌,我可以通过“https://api.uber.com/v1/me”检索用户配置文件
2) [错误]
参数 = {
'response_type': 'code',
'redirect_uri': 'INSERT_ROUTE_TO_STEP_TWO',
'scope': 'profile%20history',
}
Uber 返回“无效请求参数”。我试过'范围':'profile%20history'和'范围':'profile history'。两种情况都返回相同的错误。
我是一名 Android 开发者,使用https://github.com/twotoasters/AndrOAuth 作为测试。
谢谢
【问题讨论】: