Works with Keycloak version: 12.0.4
Setup Keycloak:
- Create a new realm and create a new client in it.
- Create few users and roles and assign the users some roles from the role mapping section.
- Click on Open ID Endpoint configuration in the realm settings and copy the token endpoint.
- Paste the url in PostMan or any API platform and test your apis.