Hi, I am trying to connect to an Oauth2 API and I am currently struggling with the configuration.
Describe the issue/error/question
In their documentation, they wrote that the client ID and Secret needs to be encoded in base64.
How would I go about this in the Oauth credentials configuration?
(I am not sure you will be able to access this, so pasting an extract below after)
https://developer-portal.cvent.com/documentation#section/Getting-Started/Authentication
Obtain an Access Token
curl -X POST {hostName}/{version}/oauth2/token \
-H 'Authorization: Basic [Base64 encoded (client_id:client_secret)]' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials&client_id=[client_id]&scope=[scope1] [scope2]'
This endpoint supports the following headers:
| Header | Description |
|---|---|
| Authorization | Required. Encode <client_id>:<client_secret> with Base64 and specify it with Basic scheme |
| Content-Type | Required. Set to application/x-www-form-urlencoded |
This endpoint supports the following parameters:
| Header | Description |
|---|---|
| grant_type | Required. Set to client_credentials to use Client Credentials Grant |
| scope | Optional. The scopes you wish to use. Set to a list of space-delimited scopes. If no scopes are specified, the scopes assigned to the client will also be assigned to the access token. |
Successful Response
The authorization server returns a JSON-formatted response when your request succeeds.
{
"access_token": "{accessToken}",
"expires_in": 3600,
"token_type": "Bearer"
}
This endpoint’s responses include the following fields:
| Header | Description |
|---|---|
| access_token | An access token. Set this token as a Bearer token in the Authorization header when you make requests to Cvent APIs. |
| expires_in | The lifetime in seconds of the access token; e.g., 3600 (seconds) |
| token_type | The type of the access token, i.e. Bearer |
Share the output returned by the last node
I get a popup window with the following error message: Forbidden
Information on your n8n setup
- **n8n version:0.160.0
- Database you’re using (default: SQLite):
- Running n8n with the execution process [own(default), main]:
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:npm
Thank you!

