Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions packages/components/credentials/PipedreamOAuthApi.credential.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { INodeParams, INodeCredential } from '../src/Interface'

class PipedreamOAuthApiCredential implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]

constructor() {
this.label = 'Pipedream Connect'
this.name = 'pipedreamOAuthApi'
this.version = 1.0
this.description =
'Authenticate with Pipedream Connect <a target="_blank" href="https://pipedream.com/docs/connect/api-reference/authentication">Documentation here</a>'
this.inputs = [
{
label: 'Client ID',
name: 'clientId',
type: 'string',
placeholder: 'oa_xxxxxxx'
},
{
label: 'Client Secret',
name: 'clientSecret',
type: 'password'
},
{
label: 'Project ID',
name: 'projectId',
type: 'string',
placeholder: 'proj_xxxxxxx'
},
{
label: 'OAuth Scopes',
name: 'oauthScopes',
type: 'string',
optional: true,
placeholder: 'connect:*',
description:
'Space-separated list of scopes (e.g., connect:* connect:actions:*). Omitting defaults to * (full access). <a target="_blank" href="https://pipedream.com/docs/connect/api-reference/authentication">Available scopes</a>'
}
]
}
}

module.exports = { credClass: PipedreamOAuthApiCredential }
Loading