... | ... | @@ -36,10 +36,18 @@ For simpler configuration we will have later on a single entrypoint, "the naiade |
|
|
|
|
|
## User credentials
|
|
|
|
|
|
Each platform client uses credentials (email and password) for authenticating against the identity manager (IdM,)
|
|
|
Each platform client uses credentials (email and password) for authenticating against the identity manager and PEP Proxy(IdM and Wilma)
|
|
|
|
|
|
So at some point you should ask the IdM maintainer (UDGA or SIMAVI) to create credentials for you. If you want to move forward and do that later, that's ok!
|
|
|
We provide test credentials, but be aware that those are not going to work in production :)
|
|
|
We provide testing credentials, but be aware that those are not going to work in production :)
|
|
|
|
|
|
`city-pilot-1@example.com` : `test`
|
|
|
`wms-1@example.com` : `test`
|
|
|
|
|
|
So at some point you should ask the IdM maintainer (UDGA or SIMAVI) to create credentials for you.
|
|
|
|
|
|
### Priviledges
|
|
|
`city-pilot-1@example.com` -> can READ and can WRITE into FlowerBed entity
|
|
|
`wm2-1@example.com` -> can READ and cannot WRITE into FlowerBed entity
|
|
|
|
|
|
|
|
|
## Oauth2 flow and http `Authorization` header
|
... | ... | @@ -65,7 +73,7 @@ curl -iX POST \ |
|
|
-H 'Accept: application/json' \
|
|
|
-H 'Authorization: Basic NDU3ODhiM2YtMzRjNy00YThlLTkwZGMtZGZiODdlOGFkMGNjOjVmMmI0YTQ5LTJkMDUtNDQ2Ny04NDQ4LTI1ZDA0OWQwMzQ5OQ==' \
|
|
|
-H 'Content-Type: application/x-www-form-urlencoded' \
|
|
|
--data-raw 'grant_type=password&username=test-user@example.com&password=test&scope=permanent'
|
|
|
--data-raw 'grant_type=password&username=city-pilot-1@example.com&password=test&scope=permanent'
|
|
|
|
|
|
```
|
|
|
|
... | ... | @@ -106,7 +114,7 @@ curl -iX POST \ |
|
|
-H 'Accept: application/json' \
|
|
|
-H 'Authorization: Basic NDU3ODhiM2YtMzRjNy00YThlLTkwZGMtZGZiODdlOGFkMGNjOjVmMmI0YTQ5LTJkMDUtNDQ2Ny04NDQ4LTI1ZDA0OWQwMzQ5OQ==' \
|
|
|
-H 'Content-Type: application/x-www-form-urlencoded' \
|
|
|
--data-raw 'grant_type=password&username=test-user@example.com&password=test&scope=permanent'
|
|
|
--data-raw 'grant_type=password&username=city-pilot-1@example.com&password=test&scope=permanent'
|
|
|
|
|
|
```
|
|
|
|
... | ... | |