-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpring Boot Security OAuth Example.postman_collection.json
126 lines (126 loc) · 2.94 KB
/
Spring Boot Security OAuth Example.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
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
{
"info": {
"_postman_id": "d42d2758-d8d4-4732-bbee-4f0fd349bdd4",
"name": "Spring Boot Security OAuth Example",
"description": "Spring Boot Security OAuth Example",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Generate Token",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "hendi-secret",
"type": "string"
},
{
"key": "username",
"value": "hendi-client",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
},
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "username",
"value": "hendi",
"type": "text"
},
{
"key": "password",
"value": "password",
"type": "text"
},
{
"key": "grant_type",
"value": "password",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:8080/oauth/token",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"oauth",
"token"
]
},
"description": "Generate Token"
},
"response": []
},
{
"name": "Accessing Without Token",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/users/user",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"users",
"user"
]
},
"description": "Accessing Without Token"
},
"response": []
},
{
"name": "Accessing With Token",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/users/user?access_token=05369009-d0e3-4d6d-aad9-ae7be41d707f",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"users",
"user"
],
"query": [
{
"key": "access_token",
"value": "05369009-d0e3-4d6d-aad9-ae7be41d707f"
}
]
},
"description": "Accessing With Token"
},
"response": []
}
]
}