add athorization to all calls except auth
This commit is contained in:
parent
8fb48f7243
commit
5dd79374c1
5 changed files with 41 additions and 12 deletions
|
|
@ -10,10 +10,14 @@ post {
|
|||
auth: inherit
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: bearcer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU2NGE5NjY0LTI2ZWYtNGMxMS1hNjIyLWU4MDI2MzczYmRkZCIsImlhdCI6MTc1ODc0MTM5MywiZXhwIjoxNzU4ODI3NzkzfQ.q33R9FfhGUIn92PTIIAmKmUnGxcLlv6om7KwiDD61Rc
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"userData": {
|
||||
"userName": "test",
|
||||
"userName": "test2",
|
||||
"email": "test@raemer.net"
|
||||
},
|
||||
"password": "test"
|
||||
|
|
|
|||
|
|
@ -5,11 +5,18 @@ meta {
|
|||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:4000/login
|
||||
body: none
|
||||
url: http://localhost:4000/auth/login
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"userName": "admin",
|
||||
"password": "1J7HgWRZ2OfaiFgrKb1BULIXN"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue