External Client App with OAuth 2.0 Client Credentials Flow
This guide explains how to configure an external client app using OAuth 2.0 Client Credentials Flow for Cloudaware CMDB API access.
Prerequisites
Contact your dedicated technical account manager or tam@cloudaware.com to enable the required Cloudaware User Profile permissions:
View all External Client AppsView all External Client Apps, view their settings, and edit their policiesCreate, edit, and delete External Client Apps
Once the permissions are enabled, proceed with the setup.
Set Up the App
-
Log in to Cloudaware → Setup.
-
In the Quick Find bar, search for
External Client Appsand select External Client App Manager under Apps. -
Click New External Client App.
-
Set a name and a contact email for the app. The API name is auto-populated.
-
Leave Distribution State as Local.
-
Collapse Basic Information.
-
Expand API (Enable OAuth Settings) and check Enable OAuth.
-
Under App Settings, use
http://localhost:1717/OauthRedirectas the callback URL. -
Select the following OAuth scopes:
- Manage user data via APIs (api)
- Perform requests at any time (refresh_token, offline_access)
-
Under Flow Enablement, check Enable Client Credentials Flow.
-
Click OK in the popup window.
-
Under Security, uncheck Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows unless it is required on your end.
-
Click Create.
-
Ensure that the app has the Enabled status.
-
In the Policies tab, click Edit.
-
Expand OAuth Policies.
-
Check Enable Client Credentials Flow and specify the username of the preferred Cloudaware user to run the app.
noteThis user is considered the running user of the app. The API respects the permissions of the specified user while processing requests.
-
Click Save.
-
Allow some time for the app to update, or manually refresh the page.
-
Go to the Settings tab.
-
Expand OAuth Settings.
-
Click Consumer Key and Secret.
-
On the identity verification page, enter the code sent to the app contact email.
-
View and copy the Client ID (Consumer Key) and Client Secret (Consumer Secret).