I have to code, how to generate oauth bearer token using curl, or may be rest api. This i have to for vmware identity manager.
I tried to code ,but somehow it is not working. If someone has tried let me know
This has resolved. Please find
https://www.ibm.com/docs/en/security-verify?topic=curl-oauth-access-token
curl -d "grant_type=client_credentials&client_id={{client_id}}&client_secret={{client_secret}}&scope=openid" -H "Content-type: application/x-www-form-urlencoded" -H "Accept: application/json" https://{{tenant}}/v1.0/endpoint/default/token
This has resolved. Please find
https://www.ibm.com/docs/en/security-verify?topic=curl-oauth-access-token
curl -d "grant_type=client_credentials&client_id={{client_id}}&client_secret={{client_secret}}&scope=openid" -H "Content-type: application/x-www-form-urlencoded" -H "Accept: application/json" https://{{tenant}}/v1.0/endpoint/default/token