| ... | @@ -27,6 +27,22 @@ http://pass.sovell.com/oauth/v2/check_token |
... | @@ -27,6 +27,22 @@ http://pass.sovell.com/oauth/v2/check_token |
|
|
|
|
|
|
|
- 生产环境终端信息根据实际情况配置
|
|
- 生产环境终端信息根据实际情况配置
|
|
|
|
|
|
|
|
|
### 终端方式授权
|
|
|
|
|
|
|
|
- 详见 [rfc6749](https://tools.ietf.org/html/rfc6749#section-4.4)
|
|
|
|
|
|
|
|
1. 接口调用示例
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
POST /oauth/v2/token HTTP/1.1
|
|
|
|
Host: pre.sovell.com
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
grant_type=client_credentials&client_id=B-8onb81TPCog2YBhSsQaA&client_secret=q1LQuI8C4CI
|
|
|
|
```
|
|
|
|
|
|
|
|
> - grant_type必须为client_credentials
|
|
|
|
|
|
|
### 短信授权
|
|
### 短信授权
|
|
|
|
|
|
|
|
- 短信授权实际上扩展了code方式的授权过程
|
|
- 短信授权实际上扩展了code方式的授权过程
|
| ... | | ... | |