Added OAuth2 support

This commit is contained in:
ricardo
2020-05-30 15:09:04 -04:00
parent f1f09d4a03
commit bf02ae4f57
17 changed files with 305 additions and 156 deletions

View File

@@ -3,11 +3,6 @@ import {
NodePropertyTypes,
} from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/calendar',
'https://www.googleapis.com/auth/calendar.events',
];
export class GoogleOAuth2Api implements ICredentialType {
name = 'googleOAuth2Api';
extends = [
@@ -27,12 +22,6 @@ export class GoogleOAuth2Api implements ICredentialType {
type: 'hidden' as NodePropertyTypes,
default: 'https://oauth2.googleapis.com/token',
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: scopes.join(' '),
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',