Issue with Bearer Token storage/sending in Spring Boot application with Keycloak integration
I am trying to integrate Keycloak as an identity provider for my Spring Boot application, where the application plays the roles of both a resource server and a client applicaiton. Upon logging in using the Keycloak form, I get redirected as expected, but the Bearer token isn’t being stored or sent to the application. The application doesn’t recognize whether the user is logged in or not. When I try to acces the function(@AuthenticationPrincipal Jwt jwt)
I am getting a null pointer exception saying the the jwt is empty.