exchanged user-service call and added some more details for test-envs to readme.md

This commit is contained in:
Timo Bejan 2020-10-26 11:02:14 +02:00
parent 83cc7888d4
commit 00259ba58d
2 changed files with 28 additions and 1 deletions

View File

@ -18,3 +18,30 @@ Select `answers-development.yaml` and add it to answers `Edit as yaml`.
For HTTPS / Cloudflare domain go to `workloads` -> `Loadbalancing` -> `select your stack`
Add cloudflare certificate and specify a hostname to use `timo-redaction-dev.iqser.cloud`
## Keycloak Staging Config
keycloak:
authServerUrl: 'https://redkc-staging.iqser.cloud/auth'
client:
secret: 'a4e8aa56-03b0-4e6b-b822-8ac1f41280c4'
## Default Testing URL
`https://timo-redaction-dev.iqser.cloud/`
Hostname:
timo-redaction-dev.iqser.cloud
## Test Users
| username | role | comment |
| --- | --- | --- |
| guest | | cannot use the application |
| user | RED_USER | |
| red_manager | RED_MANAGER | |
| useradmin | RED_ADMIN, RED_USER | has super power ! |
| manageradmin | RED_ADMIN RED_MANAGER RED_USER | has super super power ! |
Password for all users is `OsloImWinter`

View File

@ -67,7 +67,7 @@ export class UserService {
}
async loadAllUsers() {
const allUsers = await this._userControllerService.getAllUsers({}, 0, 100).toPromise();
const allUsers = await this._userControllerService.getUsers({}, 0, 100).toPromise();
this._allUsers = allUsers.users.filter(u => this._hasAnyRedRole(u));
return allUsers;
}