VMware Cloud Community
john23
Commander
Commander
Jump to solution

Generate oauth bearer token using curl or rest

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.

 

https://docs.vmware.com/en/VMware-Workspace-ONE/services/workspaceone_okta_scim_provisioning/GUID-CA...

 

I tried to code ,but somehow it is not working. If someone has tried let me know

 

Thanks -A Read my blogs: www.openwriteup.com
Labels (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
john23
Commander
Commander
Jump to solution

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

Thanks -A Read my blogs: www.openwriteup.com

View solution in original post

Reply
0 Kudos
1 Reply
john23
Commander
Commander
Jump to solution

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

Thanks -A Read my blogs: www.openwriteup.com
Reply
0 Kudos