-
Notifications
You must be signed in to change notification settings - Fork 0
/
TutoAuthentication.postman_collection.json
161 lines (161 loc) · 4.01 KB
/
TutoAuthentication.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
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
{
"info": {
"_postman_id": "af6d49e6-1e6b-4d2e-a958-5a7358ddd2c9",
"name": "TutoAuthentication",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Login admin",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"login\": \"admin\",\r\n \"password\": \"Test123$\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://localhost:7154/api/Authenticate/Login",
"protocol": "https",
"host": [
"localhost"
],
"port": "7154",
"path": [
"api",
"Authenticate",
"Login"
]
}
},
"response": []
},
{
"name": "Login user",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"login\": \"user\",\r\n \"password\": \"Test123$\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://localhost:7154/api/Authenticate/Login",
"protocol": "https",
"host": [
"localhost"
],
"port": "7154",
"path": [
"api",
"Authenticate",
"Login"
]
}
},
"response": []
},
{
"name": "Get user",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhYTIzYzNhYi1lNmY1LTQ2NzEtYWYzZS1hMTYyOWViNzkzNzQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBZG1pbiIsImV4cCI6MTY3NTk1ODEzNywiaXNzIjoiKiIsImF1ZCI6IioifQ.7Tw_3_bFYwnRBtNy8fqn23OodY_0MzAOuYF1Xybbpf4",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://localhost:7154/api/User",
"protocol": "https",
"host": [
"localhost"
],
"port": "7154",
"path": [
"api",
"User"
]
}
},
"response": []
},
{
"name": "Has role admin",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxODVmZjUyZC1kODQyLTQ5MWMtOTdlNS04NzMwMTllMGU4NWEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBZG1pbiIsImV4cCI6MTY3NTk1ODE3NywiaXNzIjoiKiIsImF1ZCI6IioifQ.Z3cCDXTk2RMvD0rNuMljNsJNqkB-v1ZVjvpDGaTKpyo",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://localhost:7154/api/User/HasRoleAdmin",
"protocol": "https",
"host": [
"localhost"
],
"port": "7154",
"path": [
"api",
"User",
"HasRoleAdmin"
]
}
},
"response": []
},
{
"name": "Has role user",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhMzMwNDA0ZS1hNWMyLTQ4YTAtYWFhOC00YTE3N2JlMWRiMjYiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBZG1pbiIsImV4cCI6MTY3NTk0NzM2MywiaXNzIjoiYWxsIiwiYXVkIjoiYWxsIn0.eA6wdkpzTJ1hne84Wzh1P-7dOZvtKC_VUe2UEst0ae8",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://localhost:7154/api/User/HasRoleUser",
"protocol": "https",
"host": [
"localhost"
],
"port": "7154",
"path": [
"api",
"User",
"HasRoleUser"
]
}
},
"response": []
}
]
}