2021-06-04 20:39:39 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2021-06-04 20:39:39 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class MicrosoftToDoOAuth2Api implements ICredentialType {
|
|
|
|
name = 'microsoftToDoOAuth2Api';
|
|
|
|
extends = [
|
|
|
|
'microsoftOAuth2Api',
|
|
|
|
];
|
|
|
|
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',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|