Skip to content

Commit

Permalink
feat: oauth support in databricks source
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhar-rudder committed Feb 26, 2025
1 parent fe22b4b commit 38e16fa
Showing 1 changed file with 53 additions and 2 deletions.
55 changes: 53 additions & 2 deletions src/configurations/sources/databricks/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"uiConfig": [
{
"title": "Connection Credentials",
"secretFields": ["token"],
"secretFields": ["token", "oauthClientSecret"],
"docLinks": {
"grantPermissions": "https://www.rudderstack.com/docs/reverse-etl/databricks/#granting-permissions",
"verifyingCredentials": "https://www.rudderstack.com/docs/reverse-etl/databricks/#what-do-the-three-validations-under-verifying-credentials-imply",
Expand Down Expand Up @@ -41,6 +41,25 @@
"addInAccountSummary": true,
"trim": true
},
{
"type": "singleSelect",
"label": "Authentication Type",
"value": "authenticationType",
"required": true,
"options": [
{
"name": "Personal Access Token",
"value": "pat"
},
{
"name": "M2M OAuth",
"value": "oauth"
}
],
"defaultOption": {
"value": "oauth"
}
},
{
"type": "textInput",
"label": "Token",
Expand All @@ -50,7 +69,39 @@
"required": true,
"addInAccountSummary": false,
"secret": true,
"inputFieldType": "password"
"inputFieldType": "password",
"preRequisiteField": {
"name": "authenticationType",
"selectedValue": "pat"
}
},
{
"type": "textInput",
"label": "Client ID",
"value": "oauthClientId",
"regex": "^(.{1,100})$",
"regexErrorMessage": "Invalid Value",
"required": true,
"addInAccountSummary": false,
"trim": true,
"preRequisiteField": {
"name": "authenticationType",
"selectedValue": "oauth"
}
},
{
"type": "textInput",
"label": "Client secret",
"value": "oauthClientSecret",
"regex": "^(.{1,100})$",
"regexErrorMessage": "Invalid Value",
"required": true,
"addInAccountSummary": false,
"secret": true,
"preRequisiteField": {
"name": "authenticationType",
"selectedValue": "oauth"
}
},
{
"type": "textInput",
Expand Down

0 comments on commit 38e16fa

Please sign in to comment.