🐛 Add scopes and offline access to Dropbox OAuth2 credentials (#1246)

This commit is contained in:
Ricardo Espinoza 2020-12-23 06:48:53 -05:00 committed by GitHub
parent 48e2c3781c
commit acc6b0496f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',