Green - 4
Green - 4

Reputation: 21

Spring boot, Spring OAuth2, REST

I connect only to Auth server and i need the JWT, by console is all ok, but not RestTemplate, i haven't idea how to do.

What would be the equivalent of the following:

curl -u secretId:secret http://localhost:9999/uaa/oauth/token -d username=user-d password=password -d grant_type=password

I need to use Spring RestTemplate, any idea how to?.

thanks and regards

Upvotes: 0

Views: 439

Answers (1)

Related Questions