2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-06-04 20:39:39 -07:00
|
|
|
|
|
|
|
export class MicrosoftToDoOAuth2Api implements ICredentialType {
|
|
|
|
name = 'microsoftToDoOAuth2Api';
|
2022-07-24 08:36:17 -07:00
|
|
|
extends = ['microsoftOAuth2Api'];
|
2021-06-04 20:39:39 -07:00
|
|
|
displayName = 'Microsoft To Do OAuth2 API';
|
|
|
|
documentationUrl = 'microsoft';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-06-04 20:39:39 -07:00
|
|
|
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
|
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2021-06-04 20:39:39 -07:00
|
|
|
default: 'openid offline_access Tasks.ReadWrite',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|