mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Add scopes and offline access to Dropbox OAuth2 credentials (#1246)
This commit is contained in:
parent
48e2c3781c
commit
acc6b0496f
|
@ -3,6 +3,11 @@ import {
|
|||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
const scopes = [
|
||||
'files.content.write',
|
||||
'files.content.read',
|
||||
'sharing.read',
|
||||
];
|
||||
|
||||
export class DropboxOAuth2Api implements ICredentialType {
|
||||
name = 'dropboxOAuth2Api';
|
||||
|
@ -30,13 +35,13 @@ export class DropboxOAuth2Api implements ICredentialType {
|
|||
displayName: 'Scope',
|
||||
name: 'scope',
|
||||
type: 'hidden' as NodePropertyTypes,
|
||||
default: '',
|
||||
default: scopes.join(' '),
|
||||
},
|
||||
{
|
||||
displayName: 'Auth URI Query Parameters',
|
||||
name: 'authQueryParameters',
|
||||
type: 'hidden' as NodePropertyTypes,
|
||||
default: '',
|
||||
default: 'token_access_type=offline',
|
||||
},
|
||||
{
|
||||
displayName: 'Authentication',
|
||||
|
|
Loading…
Reference in a new issue