-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathauthorizations.postman_collection.json
69 lines (69 loc) · 1.36 KB
/
authorizations.postman_collection.json
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
{
"info": {
"_postman_id": "2e397e19-7819-4425-bbb8-e2b7283336a4",
"name": "authorizations",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "OAuth2",
"event": [
{
"listen": "test",
"script": {
"id": "7e78bc50-5882-47e1-9920-754befbbbfc5",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var json = JSON.parse(responseBody);",
"",
"postman.setEnvironmentVariable(\"OAuth2\", \"Bearer \"+json.data.access_token);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "username",
"value": "asdfg",
"type": "text"
},
{
"key": "password",
"value": "asdfg",
"type": "text"
},
{
"key": "grant_type",
"value": "password",
"type": "text"
}
]
},
"url": {
"raw": "{{schema-host-basePath}}security/token",
"host": [
"{{schema-host-basePath}}security"
],
"path": [
"token"
]
}
},
"response": []
}
]
}