yijiusmile
2021-04-01 ce353609f8682efaa4a4e6f62957f01ef5ef005b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
  "info": {
    "_postman_id": "4d61085d-8340-4bf6-880c-15a4185fd915",
    "name": "FEBS-Cloud",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "1. 密码模式获取令牌",
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [
          {
            "description": "客户端凭证,值的格式为Basic空格 + client_id:client_secret经过Base64加密后的值",
            "key": "Authorization",
            "type": "text",
            "value": "Basic ZmViczoxMjM0NTY="
          }
        ],
        "url": {
          "raw": "http://localhost:8301/auth/oauth/token?grant_type=password&username=mrbird&password=1234qwer&key=1234&code=8873",
          "protocol": "http",
          "host": [
            "localhost"
          ],
          "port": "8301",
          "path": [
            "auth",
            "oauth",
            "token"
          ],
          "query": [
            {
              "key": "grant_type",
              "value": "password",
              "description": "认证类型,password密码模式"
            },
            {
              "key": "username",
              "value": "mrbird",
              "description": "用户名"
            },
            {
              "key": "password",
              "value": "1234qwer",
              "description": "密码"
            },
            {
              "key": "key",
              "value": "1234",
              "description": "代表每个验证码的唯一key"
            },
            {
              "key": "code",
              "value": "8873",
              "description": "验证码值(验证码的值可以通过浏览器访问http://localhost:8301/auth/captcha?key=1234获取)"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "2. 刷新令牌",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Basic ZmViczoxMjM0NTY=",
            "description": "客户端凭证,值的格式为Basic空格 + client_id:client_secret经过Base64加密后的值",
            "type": "text"
          }
        ],
        "url": {
          "raw": "localhost:8301/auth/oauth/token?grant_type=refresh_token&refresh_token=5d2dd6c3-bd99-4558-b622-bf8612d7c4fb",
          "host": [
            "localhost"
          ],
          "port": "8301",
          "path": [
            "auth",
            "oauth",
            "token"
          ],
          "query": [
            {
              "key": "grant_type",
              "value": "refresh_token"
            },
            {
              "key": "refresh_token",
              "value": "5d2dd6c3-bd99-4558-b622-bf8612d7c4fb"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "3. feign测试",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "bearer 4597893b-4ab3-468d-baa2-6ae0faf8ae9e",
            "equals": true,
            "description": "值格式:bearer空格+访问令牌"
          }
        ],
        "url": {
          "raw": "localhost:8301/test/user/list",
          "host": [
            "localhost"
          ],
          "port": "8301",
          "path": [
            "test",
            "user",
            "list"
          ]
        }
      },
      "response": []
    },
    {
      "name": "4. 通过febsutil获取在线用户信息",
      "request": {
        "method": "GET",
        "header": [
          {
            "description": "值格式:bearer空格+访问令牌",
            "equals": true,
            "key": "Authorization",
            "value": "bearer 684d687c-5d10-48fd-a58d-8484896cf9f6"
          }
        ],
        "url": {
          "raw": "localhost:8301/test/user",
          "host": [
            "localhost"
          ],
          "port": "8301",
          "path": [
            "test",
            "user"
          ]
        }
      },
      "response": []
    },
    {
      "name": "5. 分布式事务测试",
      "request": {
        "method": "GET",
        "header": [
          {
            "description": "值格式:bearer空格+访问令牌",
            "key": "Authorization",
            "type": "text",
            "value": "bearer 41171c4d-5b22-41d3-bb41-cb08564b2373"
          }
        ],
        "url": {
          "raw": "localhost:8301/test/pay?goodsId=1&goodsName=iPhone SE",
          "host": [
            "localhost"
          ],
          "port": "8301",
          "path": [
            "test",
            "pay"
          ],
          "query": [
            {
              "key": "goodsId",
              "value": "1",
              "description": "商品ID"
            },
            {
              "key": "goodsName",
              "value": "iPhone SE",
              "description": "商品名称"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "6. 授权码模式获取令牌",
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [
          {
            "description": "客户端凭证,值的格式为Basic空格 + client_id:client_secret经过Base64加密后的值",
            "key": "Authorization",
            "type": "text",
            "value": "Basic Y29kZToxMjM0NTY="
          }
        ],
        "url": {
          "raw": "http://localhost:8301/auth/oauth/token?grant_type=authorization_code&code=HLapQA&redirect_uri=http://www.baidu.com",
          "protocol": "http",
          "host": [
            "localhost"
          ],
          "port": "8301",
          "path": [
            "auth",
            "oauth",
            "token"
          ],
          "query": [
            {
              "key": "grant_type",
              "value": "authorization_code",
              "description": "认证类型,authorization_code授权码模式"
            },
            {
              "key": "code",
              "value": "HLapQA",
              "description": "授权码"
            },
            {
              "key": "redirect_uri",
              "value": "http://www.baidu.com",
              "description": "重定向地址"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "7. 客户端模式获取令牌",
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [
          {
            "description": "客户端凭证,值的格式为Basic空格 + client_id:client_secret经过Base64加密后的值",
            "key": "Authorization",
            "type": "text",
            "value": "Basic Y29kZToxMjM0NTY="
          }
        ],
        "url": {
          "raw": "http://localhost:8301/auth/oauth/token?grant_type=client_credentials&client=code",
          "protocol": "http",
          "host": [
            "localhost"
          ],
          "port": "8301",
          "path": [
            "auth",
            "oauth",
            "token"
          ],
          "query": [
            {
              "key": "grant_type",
              "value": "client_credentials",
              "description": "认证类型,client_credentials客户端模式"
            },
            {
              "key": "client",
              "value": "code",
              "description": "客户端client_id"
            }
          ]
        }
      },
      "response": []
    }
  ],
  "protocolProfileBehavior": {}
}