msf4j spring retrieve token through rest template

81 Views Asked by At

I am trying to retrieve token from WSO2 identity server, based upon the username and password received from UI.

I am able to do it from the below curl command:

curl -v -k -X POST --basic -u zbvliQjZK2aVpWV_EE2Q6PWYDUIa:xBGfoppV1DsDGoMNHDPsF5uWLKga -d "grant_type=client_credentials" https://localhost:9443/oauth2/token

But I am trying to do it through rest api using spring resttemaplte. Is it possible to do it? I hope yes.

0

There are 0 best solutions below