| ... | @@ -61,9 +61,17 @@ http://pre.sovell.com/oauth/v2/userinfo |
... | @@ -61,9 +61,17 @@ http://pre.sovell.com/oauth/v2/userinfo |
|
|
1. 发送成功后不返回实际内容,HttpStatus=200即为成功
|
|
1. 发送成功后不返回实际内容,HttpStatus=200即为成功
|
|
|
|
|
|
|
|
1. 成功后调用/token接口
|
|
1. 成功后调用/token接口
|
|
|
- 手机收到的授权码作为code参数
|
|
- 将手机号和收到的授权码共同作为code参数,使用.连接
|
|
|
- 可参考[文档rfc6749](https://tools.ietf.org/html/rfc6749#section-4.1.3)
|
|
- 可参考[文档rfc6749](https://tools.ietf.org/html/rfc6749#section-4.1.3)
|
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
POST /oauth/v2/token HTTP/1.1
|
|
|
|
Host: pre.sovell.com
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
client_id=B-8onb81TPCog2YBhSsQaA&client_secret=q1LQuI8C4CI&grant_type=authorization_code&code=18768424633.372
|
|
|
|
```
|
|
|
|
|
|
|
### 二维码授权
|
|
### 二维码授权
|
|
|
|
|
|
|
|
- 二维码授权实际上扩展了code方式的授权过程
|
|
- 二维码授权实际上扩展了code方式的授权过程
|
| ... | | ... | |