Using CURL

To use CURL:

  1. 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.
  2. Navigate to the IdentityCloudService domain in the breadcrumb trail.
  3. Copy the Domain URL.
  4. 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>'))
    ```
    

  5. 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"
    ```
    

  6. The response should contain an 'access_token' you will use in subsequent DaaS requests.


Last Published Friday, September 5, 2025