@apify/n8n-nodes-apify
Version:
n8n nodes for Apify
77 lines • 2.52 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApifyOAuth2Api = void 0;
const scopes = ['profile', 'full_api_access'];
class ApifyOAuth2Api {
constructor() {
this.name = 'apifyOAuth2Api';
this.extends = ['oAuth2Api'];
this.displayName = 'Apify OAuth2 API';
this.properties = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'pkce',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://console.apify.com/authorize/oauth',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: 'https://console-backend.apify.com/oauth/apps/token',
},
{
displayName: 'Scope (do not change)',
name: 'scope',
type: 'string',
default: `${scopes.join(' ')}`,
noDataExpression: true,
displayOptions: {
hideOnCloud: true,
},
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'header',
},
{
displayName: 'Client ID',
name: 'clientId',
type: 'hidden',
default: '',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'hidden',
default: '',
typeOptions: { password: true },
},
{
displayName: 'This credential type is not available on self hosted n8n instances, please use an API key instead.',
name: 'notice',
type: 'notice',
default: '',
displayOptions: {
hideOnCloud: true,
},
},
];
}
}
exports.ApifyOAuth2Api = ApifyOAuth2Api;
//# sourceMappingURL=ApifyOAuth2Api.credentials.js.map