I'm trying to configure a Spring Boot 1.5.0 application with Spring Security OAuth2, and my userInfo server is form-based. I have to send the access_token in a form-urlencoded way (not in a Header like "Authorization: Bearer ...").
Debugging in my IDE, I changed the authorizationScheme to "form", on UserInfoRestTemplate just like this example below:
DefaultUserInfoRestTemplateFactory
It worked as I expected. The RestTemplate generated a "www-form-urlencoded", and the server responded with the user informations as I expected.
But now I'm not able to identify how do I make the change on application.yaml to make the same behaviour. I tryed some variations but without success (like this example below)
Anybody knows how's the correct way to set it up ?
Thanks in advance