Chapter 8
- When you put data into tokens, they actually grow disproportionately in size. One option to help here is to include only the minimum information that your application needs, and for additional information, to use the token introspection endpoint. The drawback is that your application will need an additional request to Keycloak when serving requests.
You should also consider disabling the Full Scope Allowed setting in your client settings, so that only information relevant to your client is included in tokens.
- Realm roles should be used to represent the user's role within an organization. These roles have the same semantics regardless of the clients created in a realm.
- On the other hand, the semantics for a client role are specific to the client they belong to.
- In this chapter, we created a realm role and a client role using the same name: manager. While the realm role could represent users with the role of manager in an organization, the manager client...