Hi my team is developing multitenant microservices system.
After watching Bilding an effective identity and access management architecture with Keycloak - YouTube we are curious wheter there is a better way to handle described below use case.
As an user(with some role) I can manage(make operations on tenants data) two tenants.
Example
As an user I would like to change company name.
Current approach
In microservice A we have an endpoint to change company name, front end application makes a rest call passing in header tenant-id, so at beggining our microservice compare wheter the given token contains such attribute like tenant-id and value matches requested one.
Is it possible to configure somehow keycloak so that check will do authorization-server?
On video Sebastian shows example with Role but this is really simple example.