You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.3 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 授权码流程
- 先获取验证code码GET
- http://localhost:8080/summer/oauth/authorize?client_id=robin&client_secret=112211&response_type=code&redirect_uri=http://www.baidu.com&scope=all
- 请求token(post)
- http://localhost:8080/summer/oauth/token?code=6N2Ugf&grant_type=authorization_code&redirect_uri=http://www.baidu.com&scope=all
- base auth
- username : robin
- password : 112211
## 密码模式(post)
- http://192.168.0.123:8080/summer/oauth/token?client_secret=112211&client_id=robin&grant_type=password&username=alis&password=112211
## 校验token(GET)
- http://192.168.0.123:8080/summer/oauth/check_token?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJ6aGFuZyIsInNjb3BlIjpbImFsbCJdLCJleHAiOjE2MzY2MjY5NjEsImF1dGhvcml0aWVzIjpbInN5c3RlbSJdLCJqdGkiOiIxNjM2NTQwNTYxMzY0IiwicG9pbnQiOiJhcHAiLCJjbGllbnRfaWQiOiJyb2JpbiJ9.aUCKkPZWQkOO-IuBM_v23YllhNLR3cKBFFc4TzVBbnA
## 验证码模式
- http://192.168.0.123:8080/summer/oauth/token?client_secret=112211&client_id=robin&grant_type=verify_code&entity=alis&code=123221
## refresh_token 密码模式
- http://192.168.0.123:8080/summer/oauth/token?client_secret=112211&client_id=robin&grant_type=refresh_token&refresh_token=xxx
## 简易模式
- http://localhost:8080/summer/oauth/authorize?client_id=robin&redirect_uri=http:/www.baidu.com&response_type=token&scope=admin&state=abc