Problem with Spring Security configuration

0

I'm having trouble with the following scenario:

I have two projects, where one is the resource project and the other project is the authentication server, both projects were built with spring boot.

The project with the application server is working normally with spring-security Oauth2, here I have nothing to complain about. In the client project I have a problem, when I run the application through spring boot, there is no error, but when I pass the two applications to tomcat (external server), the client project creates a request request to the server

I also performed a test to verify that only the client project is raised by the spring boot (tomcat built-in), it does not create this request and exits the project normally.

The property that creates the request stays in the application.properties and is in the following way:

security.oauth2.resource.jwt.keyUri=http://localhost:8080/partner-interface-oauth2/oauth/token

Thanks for your attention and help!

    
asked by anonymous 14.06.2017 / 14:47

1 answer

1

We have resolved the problem by adding the public key in the properties file with the security.oauth2.resource.jwt.keyValue parameter. So the ResourceServerTokenServicesConfiguration class does not need to make a request for authentication server in startup;

    
19.06.2017 / 15:03