mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
25 lines
758 B
TypeScript
25 lines
758 B
TypeScript
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
const scopes = [
|
|
'https://www.googleapis.com/auth/cloud-platform',
|
|
'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
'https://www.googleapis.com/auth/devstorage.full_control',
|
|
'https://www.googleapis.com/auth/devstorage.read_only',
|
|
'https://www.googleapis.com/auth/devstorage.read_write',
|
|
];
|
|
|
|
export class GoogleCloudStorageOAuth2Api implements ICredentialType {
|
|
name = 'googleCloudStorageOAuth2Api';
|
|
extends = ['googleOAuth2Api'];
|
|
displayName = 'Google Cloud Storage OAuth2 API';
|
|
documentationUrl = 'google/oauth-single-service';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Scope',
|
|
name: 'scope',
|
|
type: 'hidden',
|
|
default: scopes.join(' '),
|
|
},
|
|
];
|
|
}
|