I have troube finding example for OAuth2 client implemented using Spring.
I have OAuth2 authorization and resource server implemented using Spring. I want to get access token from that authorization server. I need an example how to get access token from my OAuth2 server using only client credentials. There is no user involved, just my client app getting access token using client credentials and then using it to access client resources.
I found only example using Java libraries, but I assume there is support for that in Spring's OAuth2 framework.
If possible, example should contain OAuth2 client, OAuth2 Authorization server and OAuth2 resource server, all communicating over TLS using self signed certificate, implemented using Spring, using no xml configuration.
Here is the sequence diagram: