Skip to content

Commit 5b29086

Browse files
mgosalJoffcom
andauthored
feat: Add Miro credential only node (#12746)
Co-authored-by: Jonathan Bennetts <[email protected]>
1 parent 024ada8 commit 5b29086

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import type { Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
2+
3+
export class MiroOAuth2Api implements ICredentialType {
4+
name = 'miroOAuth2Api';
5+
6+
extends = ['oAuth2Api'];
7+
8+
displayName = 'Miro OAuth2 API';
9+
10+
documentationUrl = 'miro';
11+
12+
icon: Icon = 'file:icons/Miro.svg';
13+
14+
httpRequestNode = {
15+
name: 'Miro',
16+
docsUrl: 'https://developers.miro.com/reference/overview',
17+
apiBaseUrl: 'https://api.miro.com/v2/',
18+
};
19+
20+
properties: INodeProperties[] = [
21+
{
22+
displayName: 'Grant Type',
23+
name: 'grantType',
24+
type: 'hidden',
25+
default: 'authorizationCode',
26+
},
27+
{
28+
displayName: 'Authorization URL',
29+
name: 'authUrl',
30+
type: 'hidden',
31+
default: 'https://miro.com/oauth/authorize',
32+
required: true,
33+
},
34+
{
35+
displayName: 'Access Token URL',
36+
name: 'accessTokenUrl',
37+
type: 'hidden',
38+
default: 'https://api.miro.com/v1/oauth/token',
39+
required: true,
40+
},
41+
{
42+
displayName: 'Scope',
43+
name: 'scope',
44+
type: 'hidden',
45+
default: '',
46+
required: true,
47+
},
48+
{
49+
displayName: 'Auth URI Query Parameters',
50+
name: 'authQueryParameters',
51+
type: 'hidden',
52+
default: '',
53+
},
54+
{
55+
displayName: 'Authentication',
56+
name: 'authentication',
57+
type: 'hidden',
58+
default: 'body',
59+
},
60+
];
61+
}

Diff for: packages/nodes-base/credentials/icons/Miro.svg

+22
Loading

Diff for: packages/nodes-base/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
"dist/credentials/MicrosoftToDoOAuth2Api.credentials.js",
232232
"dist/credentials/MindeeInvoiceApi.credentials.js",
233233
"dist/credentials/MindeeReceiptApi.credentials.js",
234+
"dist/credentials/MiroOAuth2Api.credentials.js",
234235
"dist/credentials/MispApi.credentials.js",
235236
"dist/credentials/MistApi.credentials.js",
236237
"dist/credentials/MoceanApi.credentials.js",

0 commit comments

Comments
 (0)