After this steps, you can use KeycloakRestTemplate
to access the secured microservice (Relay the Token). However,
this only works if the request is initialized by a user. See OAuth2 WebClient
Configuration for Sending requests from
Microservice to Microservice.
- Add following dependencies to your project
<depencencies>