mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
28 lines
747 B
TypeScript
28 lines
747 B
TypeScript
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class MicrosoftSharePointOAuth2Api implements ICredentialType {
|
|
name = 'microsoftSharePointOAuth2Api';
|
|
|
|
extends = ['microsoftOAuth2Api'];
|
|
|
|
displayName = 'Microsoft SharePoint OAuth2 API';
|
|
|
|
documentationUrl = 'microsoft';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Scope',
|
|
name: 'scope',
|
|
type: 'hidden',
|
|
default: '=openid offline_access https://{{$self.subdomain}}.sharepoint.com/.default',
|
|
},
|
|
{
|
|
displayName: 'Subdomain',
|
|
name: 'subdomain',
|
|
type: 'string',
|
|
default: '',
|
|
hint: 'You can extract the subdomain from the URL. For example, in the URL "https://tenant123.sharepoint.com", the subdomain is "tenant123".',
|
|
},
|
|
];
|
|
}
|