This is the code for the blog post Extract roles from access token issued by Keycloak using Spring Security.
The problem: When parsing an access tokens issued by Keycloak using Spring Security the roles don’t get extracted from the token.
This post shows how to implement a custom converter for the token and combine it with the default JWT converter.