Files
n8n-nodes-gwezz-oceanengine/credentials/GwezzOceanengineOAuth2Api.credentials.ts
2025-10-30 16:29:55 +08:00

53 lines
1.2 KiB
TypeScript

import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
export class GwezzOceanengineOAuth2Api implements ICredentialType {
name = 'gwezzOceanengineOAuth2Api';
extends = ['oAuth2Api'];
displayName = 'Gwezz Ocean Engine OAuth2 API';
icon = { light: 'file:../icons/gwezz.svg', dark: 'file:../icons/gwezz.dark.svg' } as Icon;
documentationUrl = 'https://github.com/org/-gwezz-oceanengine?tab=readme-ov-file#credentials';
properties: INodeProperties[] = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://api.example.com/oauth/authorize',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: 'https://api.example.com/oauth/token',
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: '',
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: 'users:read users:write companies:read',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'header',
},
];
}