Skip to content

Commit

Permalink
feat: optional oauth in hubspot
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Sankeerth committed Oct 28, 2024
1 parent ae753c7 commit bc2a044
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/configurations/destinations/hs/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"name": "HS",
"displayName": "HubSpot",
"config": {
"auth": {
"type": "optional",
"role": "hubspot",
"rudderScopes": ["delivery"],
"authTypeField": "authorizationType"
},
"isAudienceSupported": true,
"supportsVisualMapper": true,
"transformAtV1": "router",
Expand Down Expand Up @@ -51,6 +57,7 @@
"destConfig": {
"defaultConfig": [
"authorizationType",
"rudderAccountId",
"hubID",
"apiKey",
"accessToken",
Expand Down
17 changes: 17 additions & 0 deletions src/configurations/destinations/hs/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
{
"label": "Private Apps",
"value": "newPrivateAppApi"
},
{
"label": "OAuth",
"value": "OAuth"
}
],
"default": "legacyApiKey"
Expand Down Expand Up @@ -64,6 +68,19 @@
]
}
},
{
"type": "OAuthField",
"configKey": "rudderAccountId",
"note": "Your Rudder Account ID (Settings -> Account -> Account ID)",
"preRequisites": {
"fields": [
{
"configKey": "authorizationType",
"value": "OAuth"
}
]
}
},
{
"type": "singleSelect",
"label": "API Version",
Expand Down

0 comments on commit bc2a044

Please sign in to comment.