I have three services running SpringBoot + Keycloak securtiy as a bearer client each. (Not realy microservices, but it should be one later on)
Now I want service-1 call service-2 with a REST call. But the services REST calls are secured with e.g: service1: .antMatchers("/service1/**").hasRole("chief")
service2: .antMatchers("/service2/**").hasRole("chief")
service3: .antMatchers("/service3/**").hasRole("chief")
...and so on.
On call GET "/service2/data" from service-1 I get a 401 return code of course.
What do I need to setup to get this running correctly?
Can I set up that all bearer-client are allowed to call each other? Or should I setup a login for the services? or just add roles to the clients?