mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
a798c6c0f6
* ✨ Microsoft Dynamics CRM * ⚡ Improvements * ⚡ Improvements * ⚡ Minor improvements Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
31 lines
743 B
TypeScript
31 lines
743 B
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export class MicrosoftDynamicsOAuth2Api implements ICredentialType {
|
|
name = 'microsoftDynamicsOAuth2Api';
|
|
extends = [
|
|
'microsoftOAuth2Api',
|
|
];
|
|
displayName = 'Microsoft Dynamics OAuth2 API';
|
|
documentationUrl = 'microsoft';
|
|
properties: INodeProperties[] = [
|
|
//https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
|
|
{
|
|
displayName: 'Subdomain',
|
|
name: 'subdomain',
|
|
type: 'string',
|
|
required: true,
|
|
placeholder: 'organization',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Scope',
|
|
name: 'scope',
|
|
type: 'hidden',
|
|
default: '=openid offline_access https://{{$self.subdomain}}.crm.dynamics.com/.default',
|
|
},
|
|
];
|
|
}
|