Using CURL
To use CURL:
- From the General Information section, copy the Client ID and the Client Secret to your notepad. These will serve as basic authentication credentials when requesting a token from the identity provider.
- Navigate to the IdentityCloudService domain in the breadcrumb trail.
- Copy the Domain URL.
- Build a base64 encoded authentication header string from your client ID and client secret:
- Mac / Linux (bash shell) ``` $ auth=$(echo -n '<client_id>:<client_secret>' | base64 -w 0) ``` - Windows (PowerShell) ``` > auth = [System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes('<client_id>:<client_secret>')) ```
- Execute cURL command:
``` $ curl --location "<domain_url>/oauth2/v1/token" \ --header "Content-Type: application/x-www-form-urlencoded" \ --header "grant_type: client_credentials" \ --header "scope: texturadaas:read" \ --header "Authorization: Basic $auth" \ --data-urlencode "grant_type=client_credentials" \ --data-urlencode "scope=texturadaas:read" ```
- The response should contain an 'access_token' you will use in subsequent DaaS requests.
Last Published Friday, September 5, 2025