n8n/packages/nodes-base/credentials/MicrosoftOneDriveOAuth2Api.credentials.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
559 B
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-03-22 12:43:35 -07:00
export class MicrosoftOneDriveOAuth2Api implements ICredentialType {
name = 'microsoftOneDriveOAuth2Api';
extends = ['microsoftOAuth2Api'];
displayName = 'Microsoft Drive OAuth2 API';
documentationUrl = 'microsoft';
properties: INodeProperties[] = [
2020-03-22 12:43:35 -07:00
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
2020-03-22 12:43:35 -07:00
default: 'openid offline_access Files.ReadWrite.All',
},
];
}