The OAuth 2.0 Client Credentials Flow, described in OAuth 2.0 RFC 6749 (section 4.4), is a method in which an application can obtain an access token by using its unique credentials such as client ID and client secret.
This process is typically used when an application needs to authenticate itself, without requiring user input, to access protected resources.
Credential Provider configuration
Section titled “Credential Provider configuration”To configure an OAuth 2.0 Client Credentials Credential Provider, follow the steps outlined below.
-
Log into your Aembit tenant.
-
Once you are logged into your tenant, click on the Credential Providers tab in the left navigation pane. You are directed to the Credential Providers page displaying a list of existing Credential Providers. In this example, there are no existing Credential Providers.
-
Click on the New button to open the Credential Providers dialog window.
-
In the Credential Providers dialog window, enter the following information:
- Name - Name of the Credential Provider.
- Description - An optional text description of the Credential Provider.
- Credential Type - A dropdown menu that enables you to configure the Credential Provider type. Select OAuth 2.0 Client Credentials.
- Token Endpoint Url - The Token Endpoint URL is the designated location where an application can obtain an access token through the OAuth 2.0 Client Credentials Flow.
- Client Id - The Client ID is a unique identifier assigned to your application upon registration. You can find your application’s Client ID in the respective section provided by the OAuth Server.
- Client Secret - The Client Secret is a secret that is only known to the client (application) and the Authorization Server. It is used for secure authentication between the client and the Authorization Server.
- Scopes (optional) - OAuth 2.0 allows clients to specify the level of access they require while seeking authorization. Typically, scopes are documented by the server to inform clients about the access required for specific actions.
- Credential Style - A set of options that allows you to choose how the credentials are sent to the authorization
server when requesting an access token. You can select one of the following options:
- Authorization Header - The credentials are included in the request’s Authorization header as a Base64-encoded string. This is the most common and secure method.
- POST Body - The credentials are sent in the body of the POST request as form parameters. This method is less common and may be required by certain servers that don’t support the Authorization header.
Make sure to review your Server Workload documentation to determine what is considered the credential style in that specific context.
-
Click Save when finished. You will be directed back to the Credential Providers page, where you will see your newly created Credential Provider.