But I do not want to use security.oauth2.resource properties, neither tokenInfoUri/userInfoUri nor key-value. I want to use _JwtAccessTokenConverter.setSigningKey("mykey").
The problem is, if I define security.oauth2.client, OAuth2AutoConfiguration will create the a bean of ResourceServerProperties, which will validate whether I have any of the security.oauth2.resource properties set or not.
As a workaround, I am setting a dummy value for security.oauth2.resource.user-info-uri just to pass the validation, but I am pretty sure there is a better way. Thanks in advance!
I have my resource server where I want to configure the security.oauth2.client properties:
But I do not want to use security.oauth2.resource properties, neither tokenInfoUri/userInfoUri nor key-value. I want to use _JwtAccessTokenConverter.setSigningKey("mykey").
The problem is, if I define security.oauth2.client, OAuth2AutoConfiguration will create the a bean of ResourceServerProperties, which will validate whether I have any of the security.oauth2.resource properties set or not.
As a workaround, I am setting a dummy value for security.oauth2.resource.user-info-uri just to pass the validation, but I am pretty sure there is a better way. Thanks in advance!