Keycloak: Spring Boot project as bearer and reusing token from user


Keycloak: Spring Boot project as bearer and reusing token from user



I am building an application with an angular frontend and spring boot on the backend. I was able to configure the angular and spring part.
So, the frontend requests a token and sends it with every request to the java backend. This works just fine.



My java backend is now in the need to reuse the client token to request data from another service, which uses the same mechanism.



What is the right way to go forward? Requesting an own token for my service or using the existing token from the authenticated user?



I have not found a way to do this.





While calling your 3rd service you can use the same token , Add your third service as bearer-only Client.
– ravthiru
2 days ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

how to run turtle graphics in Colaboratory

Export result set on Dbeaver to CSV