Connect to Cloudaware CMDB API using Connected App with OAuth 2.0 Client Credentials Flow
This article explains how to configure a connected 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 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:
in a Quick Find bar, type App Manager and select 'App manager' under Apps:
Click New Connected App → select 'Create a Connected App' → click Continue:
Specify a name and a contact email for the connected app. The API name will be auto-populated.
Under API (Enable OAuth Settings), check the box for 'Enable OAuth Settings'. Paste
http://localhost:1717/OauthRedirect
in the Callback URL field.Select the following OAuth Scopes:
Manage user data via APIs (api)
Perform requests at any time (refresh_token, offline_access)Uncheck the check box 'Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows' if it is not required.
Check the box for 'Enable Client Credentials Flow'. Click OK in the popup window. Scroll down and click Save.
A message will appear informing that the changes may take some time to be applied. Click Continue to be redirected to the New Connected App page.
Click Manage Consumer Details.
Check your email to get the code required to verify your identity.
Copy & save Consumer Key and Consumer Secret. These credentials should be used as
client_id
andclient_secret
in authorization API requests to obtain an access token.
Click the link 'Back to Manage Connected Apps'.Click Manage → Edit Policies:
Under the section 'Client Credentials Flow' in '(Run As)', click on the magnifying glass icon:
In a popup window, select a preferred user* using the list of users or a search bar:
This user is considered to be a 'running' user of the connected app. The API will respect the permissions of the specified Cloudaware User while processing the requests.
Once the popup window is closed, get back to the Edit Policies page. Scroll down and click Save.