Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,13 @@ export class ConnectionsController {
? m.auth.config.credentialFields
: m.credentialFields;

// Get setup instructions for custom auth
// Surface setup instructions for any credential-entry auth type (custom, api_key,
// basic, jwt) — not just custom. oauth2 is excluded because its setupInstructions are
// admin app-creation steps, not customer connect steps.
const setupInstructions =
m.auth.type === 'custom' ? m.auth.config.setupInstructions : undefined;
m.auth.type !== 'oauth2' && 'setupInstructions' in m.auth.config
? m.auth.config.setupInstructions
: undefined;

const setupScript =
m.auth.type === 'custom' ? m.auth.config.setupScript : undefined;
Expand Down Expand Up @@ -372,9 +376,12 @@ export class ConnectionsController {
? manifest.auth.config.credentialFields
: manifest.credentialFields;

// Get setup instructions for custom auth
// Surface setup instructions for any credential-entry auth type (custom, api_key,
// basic, jwt) — not just custom. oauth2 is excluded because its setupInstructions are
// admin app-creation steps, not customer connect steps.
const setupInstructions =
manifest.auth.type === 'custom'
manifest.auth.type !== 'oauth2' &&
'setupInstructions' in manifest.auth.config
? manifest.auth.config.setupInstructions
: undefined;

Expand Down
Loading