dengzedong
2024-12-24 76743b009ca5ea67557fcab597b332f8d1947813
提交 | 用户 | 时间
e7c126 1 ### 请求 /system/oauth2/authorize 接口 => 成功
H 2 GET {{baseUrl}}/system/oauth2/authorize?clientId=default
3 Authorization: Bearer {{token}}
4 tenant-id: {{adminTenentId}}
5
6 ### 请求 /system/oauth2/authorize + token 接口 => 成功
7 POST {{baseUrl}}/system/oauth2/authorize
8 Content-Type: application/x-www-form-urlencoded
9 Authorization: Bearer {{token}}
10 tenant-id: {{adminTenentId}}
11
12 response_type=token&client_id=default&scope={"user.read": true}&redirect_uri=https://www.baidu.com&auto_approve=true
13
14 ### 请求 /system/oauth2/authorize + code 接口 => 成功
15 POST {{baseUrl}}/system/oauth2/authorize
16 Content-Type: application/x-www-form-urlencoded
17 Authorization: Bearer {{token}}
18 tenant-id: {{adminTenentId}}
19
20 response_type=code&client_id=default&scope={"user.read": true}&redirect_uri=https://www.baidu.com&auto_approve=false
21
22 ### 请求 /system/oauth2/token + code 接口 => 成功
23 POST {{baseUrl}}/system/oauth2/token
24 Content-Type: application/x-www-form-urlencoded
25 Authorization: Basic ZGVmYXVsdDphZG1pbjEyMw==
26 tenant-id: {{adminTenentId}}
27
28 grant_type=authorization_code&redirect_uri=https://www.baidu.com&code=189956c07a174588a97157eabef2f93a
29
30 ### 请求 /system/oauth2/token + password 接口 => 成功
31 POST {{baseUrl}}/system/oauth2/token
32 Content-Type: application/x-www-form-urlencoded
33 Authorization: Basic ZGVmYXVsdDphZG1pbjEyMw==
34 tenant-id: {{adminTenentId}}
35
36 grant_type=password&username=admin&password=admin123&scope=user.read
37
38 ### 请求 /system/oauth2/token + refresh_token 接口 => 成功
39 POST {{baseUrl}}/system/oauth2/token
40 Content-Type: application/x-www-form-urlencoded
41 Authorization: Basic ZGVmYXVsdDphZG1pbjEyMw==
42 tenant-id: {{adminTenentId}}
43
44 grant_type=refresh_token&refresh_token=00895465d6994f72a9d926ceeed0f588
45
46 ### 请求 /system/oauth2/token + DELETE 接口 => 成功
47 DELETE {{baseUrl}}/system/oauth2/token?token=ca8a188f464441d6949c51493a2b7596
48 Authorization: Basic ZGVmYXVsdDphZG1pbjEyMw==
49 tenant-id: {{adminTenentId}}
50
51 ### 请求 /system/oauth2/check-token 接口 => 成功
52 POST {{baseUrl}}/system/oauth2/check-token?token=620d307c5b4148df8a98dd6c6c547106
53 Authorization: Basic ZGVmYXVsdDphZG1pbjEyMw==
54 tenant-id: {{adminTenentId}}