Connected App with OAuth 2.0 Client Credentials Flow (Legacy)
This guide explains how to configure a connected app using OAuth 2.0 Client Credentials Flow for Cloudaware CMDB API access.
Connected Apps are a legacy feature. Use External Client Apps with OAuth 2.0 Client Credentials Flow for new configurations.
Prerequisites
Contact your dedicated technical account manager or tam@cloudaware.com to enable the App Manager feature for your Cloudaware account. Once the feature is enabled, proceed with the setup.
Set Up the App
-
Log in to Cloudaware → Setup.
-
Search for
Appsin the Quick Find bar. Under External Client Apps, select the Settings tab → New Connected App. -
Set a name and a contact email for the connected app. The API name is auto-populated.
-
Under API (Enable OAuth Settings), check Enable OAuth Settings.
-
In Callback URL, enter
http://localhost:1717/OauthRedirect. -
Select the following OAuth scopes:
- Manage user data via APIs (api)
- Perform requests at any time (refresh_token, offline_access)
-
Uncheck Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows if it is not required.
-
Check Enable Client Credentials Flow.
-
Click OK in the popup window.
-
Scroll down and click Save.
-
When the message appears informing that the changes may take some time to be applied, click Continue to open the new connected app page.
-
Click Manage Consumer Details.
-
Check your email to get the code required to verify your identity.
-
Copy and save the Consumer Key and Consumer Secret. These credentials should be used as
client_idandclient_secretin authorization API requests to obtain an access token. -
Click Back to Manage Connected Apps.
-
Click Manage → Edit Policies.
-
Under Client Credentials Flow, in Run As, click the magnifying glass icon.
-
In the popup window, select the preferred running user using the list of users or the search bar.
noteThis user is considered the running user of the connected app. The API respects the permissions of the specified Cloudaware user while processing requests.
-
After the popup window closes, return to the Edit Policies page.
-
Scroll down and click Save.