Implement change password request. Adapt authorizationMiddleware to allow for adminOrOwner access to resources
This commit is contained in:
parent
555dacfaf5
commit
2a6153002c
4 changed files with 180 additions and 59 deletions
|
|
@ -5,24 +5,24 @@ meta {
|
|||
}
|
||||
|
||||
post {
|
||||
url: https://localhost:4000/user/update
|
||||
url: http://localhost:4000/user/update
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImE0NDdlNDM0LTQyMWYtNDJiYS04MGRlLTM0ZDE1YzJmNWE2YyIsImlhdCI6MTc2MzA2NTI0MCwiZXhwIjoxNzYzMTUxNjQwfQ.e7v1JnlNHm7zwSzumlZIy2Dxfojqsxk55aYC9UA7BkE
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImE0NDdlNDM0LTQyMWYtNDJiYS04MGRlLTM0ZDE1YzJmNWE2YyIsImlhdCI6MTc2MzQ5MDcxMywiZXhwIjoxNzYzNTc3MTEzfQ.h8ta-4tVhR7EskZDBLtcFTQ7QllV-PfC09Y0DLjYJa4
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"id": "a447e434-421f-42ba-80de-34d15c2f5a6c",
|
||||
"userName": "admin",
|
||||
"email": "anika@raemer.net",
|
||||
"firstName": "Anika",
|
||||
"lastName": "Rämer",
|
||||
"role": "admin"
|
||||
}
|
||||
"id": "9c913747-ba57-4b12-87d0-3339f4a8117c",
|
||||
"userName": "test3",
|
||||
"email": "test@raemer.net",
|
||||
"firstName": "Thea",
|
||||
"lastName": "Test",
|
||||
"role": "user"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue