Switch access control from groups to realm roles
This commit is contained in:
@@ -29,6 +29,8 @@ psql "$DATABASE_URL" -f scripts/init_schema.sql
|
||||
- `KEYCLOAK_USERINFO_ENDPOINT`
|
||||
- `KEYCLOAK_AUDIENCE`
|
||||
- `KEYCLOAK_VERIFY_TLS`
|
||||
- `MEMBER_REQUIRED_REALM_ROLES` (default: `admin,manager`)
|
||||
- `ADMIN_REQUIRED_REALM_ROLES` (default: `admin,manager`)
|
||||
|
||||
## Main APIs
|
||||
|
||||
@@ -38,7 +40,7 @@ psql "$DATABASE_URL" -f scripts/init_schema.sql
|
||||
- `GET /me` (Bearer token required)
|
||||
- `GET /me/permissions/snapshot` (Bearer token required)
|
||||
|
||||
### Admin APIs (Bearer + admin group required)
|
||||
### Admin APIs (Bearer + admin realm role required)
|
||||
- `GET/POST/PATCH/DELETE /admin/companies`
|
||||
- `GET/POST/PATCH/DELETE /admin/sites`
|
||||
- `GET/POST/PATCH/DELETE /admin/systems`
|
||||
|
||||
Reference in New Issue
Block a user