mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-24 04:59:13 +00:00
✨ Add Microsoft Teams Node (#931)
* ✨ Microsoft Team node * ⚡ Small fix * ⚡ Small improvements * ⚡ Small improvements * ⚡ Small fix * ⚡ Small improvements
This commit is contained in:
@@ -11,17 +11,19 @@ export class MicrosoftOAuth2Api implements ICredentialType {
|
||||
displayName = 'Microsoft OAuth2 API';
|
||||
documentationUrl = 'microsoft';
|
||||
properties = [
|
||||
//info about the tenantID
|
||||
//https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols#endpoints
|
||||
{
|
||||
displayName: 'Authorization URL',
|
||||
name: 'authUrl',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: 'https://login.microsoftonline.com/{yourtenantid}/oauth2/v2.0/authorize',
|
||||
default: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
|
||||
},
|
||||
{
|
||||
displayName: 'Access Token URL',
|
||||
name: 'accessTokenUrl',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: 'https://login.microsoftonline.com/{yourtenantid}/oauth2/v2.0/token',
|
||||
default: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
|
||||
},
|
||||
{
|
||||
displayName: 'Auth URI Query Parameters',
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import {
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class MicrosoftTeamsOAuth2Api implements ICredentialType {
|
||||
name = 'microsoftTeamsOAuth2Api';
|
||||
extends = [
|
||||
'microsoftOAuth2Api',
|
||||
];
|
||||
displayName = 'Microsoft OAuth2 API';
|
||||
properties = [
|
||||
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
|
||||
{
|
||||
displayName: 'Scope',
|
||||
name: 'scope',
|
||||
type: 'hidden' as NodePropertyTypes,
|
||||
default: 'openid offline_access User.ReadWrite.All Group.ReadWrite.All',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user