Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 1.3.0 - Feature release - 2026/04

- Adding OAuth preset for SSO authentication

## Version 1.2.1 - Bugfix release - 2026/01

- Removes urllib3 requirement. urllib3 is installed by boxsdk requirements taking the last available version.
Expand Down
25 changes: 25 additions & 0 deletions parameter-sets/oauth-login/parameter-set.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"meta": {
"label": "Single Sign On",
"description": "",
"icon": "icon-cloud"
},
"defaultDefinableInline": true,
"defaultDefinableAtProjectLevel": true,
"pluginParams": [],
"params": [
{
"name": "boxcom_oauth",
"type": "CREDENTIAL_REQUEST",
"label": "Box.com Single Sign On",
"credentialRequestSettings": {
"type": "OAUTH2",
"oauth2Flow": "authorization_code",
"oauth2Provider": "AZURE",
"authorizationEndpoint": "https://account.box.com/api/oauth2/authorize",
"tokenEndpoint": "https://api.box.com/oauth2/token",
"scope": "root_readwrite"
}
}
]
}
4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"id": "box-com",
"version": "1.2.1",
"version": "1.3.0",
"meta": {
"label": "Box.com",
"description": "Read and write data from/to your Box.com account",
"author": "Dataiku (Alex Bourret)",
"icon": "icon-cloud",
"category": "Productivity",
"tags": ["Connector", "Productivity"],
"url": "https://www.dataiku.com/product/plugins/box-com/",
"url": "https://doc.dataiku.com/dss/latest/connecting/application-connectors/box-com.html",
"licenseInfo": "Apache Software License",
"supportLevel": "NOT_SUPPORTED"
}
Expand Down
26 changes: 25 additions & 1 deletion python-fs-providers/box-com_box-com/fs-provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,35 @@
"icon": "icon-cloud"
},
"params": [
{
"name": "auth_type",
"label": "Type of authentication",
"type": "SELECT",
"defaultValue": "token",
"selectChoices": [
{
"value": "token",
"label": "Access token"
},
{
"value": "oauth",
"label": "Single Sign On"
}
]
},
{
"name": "box_com_connection",
"label": "Box.com connection",
"type": "PRESET",
"parameterSetId": "box-set-id"
"parameterSetId": "box-set-id",
"visibilityCondition": "model.auth_type == 'token'"
},
{
"name": "oauth_login",
"label": "Box.com Single Sign On",
"type": "PRESET",
"parameterSetId": "oauth-login",
"visibilityCondition": "model.auth_type == 'oauth'"
},
{
"name": "cache_enabled",
Expand Down
8 changes: 6 additions & 2 deletions python-fs-providers/box-com_box-com/fs-provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ def __init__(self, root, config, client):
if len(root) > 0 and root[0] == '/':
root = root[1:]
self.root = root
self.connection = client.get("box_com_connection")
self.access_token = self.connection['access_token']
self.connection = client.get("box_com_connection", {})
self.auth_type = config.get("auth_type", "token")
if self.auth_type == "oauth":
self.access_token = config.get("oauth_login", {}).get("boxcom_oauth")
else:
self.access_token = self.connection.get("access_token")
self.cache_enabled = config.get("cache_enabled")
if self.cache_enabled:
cache_file_name = hashlib.sha1(self.access_token.encode('utf-8')).hexdigest()
Expand Down