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.