2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-10-03 09:09:07 -07:00
|
|
|
|
|
|
|
const scopes = [
|
2020-10-23 00:15:11 -07:00
|
|
|
'https://www.googleapis.com/auth/admin.directory.group',
|
2020-10-03 09:09:07 -07:00
|
|
|
'https://www.googleapis.com/auth/admin.directory.user',
|
|
|
|
'https://www.googleapis.com/auth/admin.directory.domain.readonly',
|
|
|
|
'https://www.googleapis.com/auth/admin.directory.userschema.readonly',
|
|
|
|
];
|
|
|
|
|
|
|
|
export class GSuiteAdminOAuth2Api implements ICredentialType {
|
|
|
|
name = 'gSuiteAdminOAuth2Api';
|
2022-07-24 08:36:17 -07:00
|
|
|
extends = ['googleOAuth2Api'];
|
2020-10-03 09:09:07 -07:00
|
|
|
displayName = 'G Suite Admin OAuth2 API';
|
|
|
|
documentationUrl = 'google';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-10-03 09:09:07 -07:00
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2020-10-03 09:09:07 -07:00
|
|
|
default: scopes.join(' '),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|