2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-09-13 02:08:43 -07:00
|
|
|
|
|
|
|
export class MicrosoftTeamsOAuth2Api implements ICredentialType {
|
|
|
|
name = 'microsoftTeamsOAuth2Api';
|
2022-07-24 08:36:17 -07:00
|
|
|
extends = ['microsoftOAuth2Api'];
|
2020-09-22 23:16:40 -07:00
|
|
|
displayName = 'Microsoft Teams OAuth2 API';
|
2020-09-21 02:11:02 -07:00
|
|
|
documentationUrl = 'microsoft';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-09-13 02:08:43 -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',
|
2022-04-01 08:21:25 -07:00
|
|
|
default: 'openid offline_access User.ReadWrite.All Group.ReadWrite.All Chat.ReadWrite',
|
2020-09-13 02:08:43 -07:00
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|