Update "Oauth2%E6%8E%A5%E5%85%A5%E8%AF%B4%E6%98%8E"
parent
ea09d50186
commit
0bf042035c
|
|
@ -39,7 +39,7 @@ https://www.gitlink.org.cn/oauth/token?grant_type=refresh_token&refresh_token={r
|
|||
### 2. 密码模式
|
||||
* 用户向客户端提供邮箱地址和密码。客户端将邮箱地址和密码发给GitLink确实开源认证服务器,并向GitLink确实开源认证服务器请求令牌。( POST请求。Content-Type: application/x-www-form-urlencoded )
|
||||
```
|
||||
curl -X POST --data-urlencode "grant_type=password" --data-urlencode "username={email}" --data-urlencode "password={password}" --data-urlencode "client_id={client_id}" --data-urlencode "client_secret={client_secret}" --data-urlencode "scope=user_info" https://www.gitlink.org.cn/oauth/token
|
||||
curl -X POST --data-urlencode "grant_type=password" --data-urlencode "username={email}" --data-urlencode "password={password}" --data-urlencode "client_id={client_id}" --data-urlencode "client_secret={client_secret}" https://www.gitlink.org.cn/oauth/token
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue