Starting with V8.7, Cora SeQuence supports OAuth 2.0 Client Credentials Grant flow to consume external services. In the Client Credentials Grant flow there is no user interaction. The application executes the authentication request directly, on behalf of itself. The Client Credential Grant flow is used for machine to machine authorization. The access token is issued on the server, authenticating only the client, not the user.
Currently, you can use OAuth 2.0 credentials only for Email Listener activities, but in the future, it will support other integration activities.
Client Credentials Grant flow
- Cora SeQuence authenticates itself to the authorization server and requests an access token.
- The authorization server issues an Access Token.
- The access token is used to authenticate Cora SeQuence to the service provider.
- Data from the service provider is sent to Cora SeQuence.
For more information on the OAuth 2.0 Authorization Framework, see this page.
When you configure OAuth 2.0 credentials, all parameters are mandatory.
|Client Identifier||A unique string representing the registration information of the client at the authorization server.|
|Client Secret||A value used to authenticate the client, Cora SeQuence, when requesting a token from the authorization server.|
|Token Endpoint||The URL used to interact with the authorization server to obtain the access token.|
|Scopes||The scope of the access requested. The value of the scope parameter is expressed as a list of space- delimited, case-sensitive strings. The strings are defined at the authorization server.|
Make sure that Cora SeQuence is registered with the authorization server, and that you have the required parameters:
- Client ID
- Client secret
- OAuth 2.0 token endpoint
- Defined scopes
- On the Admin console, go to Administration > Global Settings > Credentials.
- Click + Add Credentials, and then select OAuth2 Client Credentials.
- Enter a significant name for the credential.
- Enter the required parameters:
- Client Identifier
- Client Secret
- Token Endpoint
- Under Authentication Method, select one of the following options:
- Send credentials using the HTTP Basic authentication scheme: This is the default option. In this option Cora SeQuence sends its credentials via an HTTP Authorization Header with scheme Basic.
- Send credentials in the body of the request: Recommended option for Azure implementations, which require passing parameters in the body of the request.
It is not recommended to include client credentials in the request body, and this option should be limited to clients that are unable to use the HTTP basic authentication scheme.
Example of configured OAuth 2.0 credentials
- To verify that the settings you entered are correct, click Validate.
Validation is not a mandatory step. The values you add to the credential may not be valid at design time. For example, the information was provided by the customer, but has not yet been updated in the runtime environment.
- Click Add.
The OAuth 2.0 client credentials are added to the list of credentials and are available for setting up Email Listener integration activities that use the EWS protocol.