mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 23:54:07 -08:00
42bbe3006a
* 🚧 setup - Added everything, need to test and add icon * Add icon * 🚧 Node colour change * 🚧 Fixed Descriptions * ✔️ Tested, fixed up properties * ✅ Fixed issue of issue * ✅ Added create option for team & organization * ⚡ Improvements * ⚡ Fixed OAuth2 credentials scope * ⚡ Adjusted descriptions, added loadOptions for organizations/projects, small fixes * ⚡ Added Create Release, interfaces * ⚡ Improvements to SentryIO-Node Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import {
|
|
ICredentialType,
|
|
NodePropertyTypes,
|
|
} from 'n8n-workflow';
|
|
|
|
export class SentryIoOAuth2Api implements ICredentialType {
|
|
name = 'sentryIoOAuth2Api';
|
|
extends = [
|
|
'oAuth2Api',
|
|
];
|
|
displayName = 'Sentry.io OAuth2 API';
|
|
properties = [
|
|
{
|
|
displayName: 'Authorization URL',
|
|
name: 'authUrl',
|
|
type: 'hidden' as NodePropertyTypes,
|
|
default: 'https://sentry.io/oauth/authorize/',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Access Token URL',
|
|
name: 'accessTokenUrl',
|
|
type: 'hidden' as NodePropertyTypes,
|
|
default: 'https://sentry.io/oauth/token/',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Scope',
|
|
name: 'scope',
|
|
type: 'hidden' as NodePropertyTypes,
|
|
default: 'event:admin event:read org:read project:read project:releases team:read event:write org:admin project:write team:write project:admin team:admin',
|
|
},
|
|
{
|
|
displayName: 'Auth URI Query Parameters',
|
|
name: 'authQueryParameters',
|
|
type: 'hidden' as NodePropertyTypes,
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Authentication',
|
|
name: 'authentication',
|
|
type: 'hidden' as NodePropertyTypes,
|
|
default: 'body',
|
|
},
|
|
];
|
|
}
|