I created a spring boot backend microservice as a oauth 2 resource server. In the calling microservice, I get an access token (client_credentials grant_type) from keycloak and then send it as Bearer Authorization header. In the called microservice, I get this exception: InvalidBearerTokenException: org.springframework.security.oauth2.server.resource.InvalidBearerTokenException: An error occurred while attempting to decode the Jwt: Malformed token

Here is the stackoverflow question I posted 2 days ago: https://stackoverflow.com/questions/78184759/spring-security-oauth2-resource-server-invalidbearertokenexception

Comment From: amirensit

?

Comment From: sjohnr

@amirensit I have responded on your stackoverflow question. It is not necessary to cross-post as the team monitors Stack Overflow regularly.