Complete source code used to explain an article on Securing REST API using Keycloak and Spring Oauth2
https://medium.com/@bcarunmail/securing-rest-api-using-keycloak-and-spring-oauth2-6ddf3a1efcc2
To continue reading on how to Access a Secure REST API using Spring OAuth2RestTemplate, refer below article