Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jaganpro avatar

Sf Connected Apps

  • 1.3k installs
  • 423 repo stars
  • Updated April 27, 2026
  • jaganpro/sf-skills

sf-connected-apps is an agent skill for Salesforce Connected App and External Client App OAuth configuration with security scoring.

About

The sf-connected-apps skill guides OAuth app configuration in Salesforce for Connected Apps and External Client Apps with a 120-point scoring model across six categories. It covers flow selection for authorization code, PKCE, JWT bearer, device, and client credentials, plus metadata paths for connectedApp-meta.xml and eca-meta.xml files. The workflow chooses app model, OAuth flow, template assets, security hardening with least-privilege scopes, and deployment readiness validation. It delegates Named Credentials to sf-integration, permissions to sf-permissions, Apex token code to sf-apex, and deploy to sf-deploy. Spring 2026 notes prefer ECAs for new integrations when Connected App creation is disabled. Use when developers configure OAuth callbacks, consumer keys, certificates, or migrate from Connected Apps to ECAs. Agents should follow the SKILL.md workflow end to end, grounding classification in documented commands, file paths, prerequisites, and troubleshooting notes rather than improvising steps. Configure Salesforce Connected Apps and External Client Apps with OAuth flows, PKCE, JWT bearer, scopes, and security hardening. Invoke when User touches connectedApp-meta.xml, eca-me.

  • 120-point scoring across six categories for production-ready OAuth app config.
  • Connected App vs External Client App decision table with Spring 2026 ECA guidance.
  • OAuth flow matrix: auth code, PKCE, JWT bearer, device, client credentials.
  • Template assets for connected-app and ECA metadata with security anti-pattern table.
  • Delegates Named Credentials, permissions, Apex, and deploy to sibling sf-skills.

Sf Connected Apps by the numbers

  • 1,306 all-time installs (skills.sh)
  • +4 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #346 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

sf-connected-apps capabilities & compatibility

Capabilities
connected app and eca model selection · oauth flow and scope design · metadata template scaffolding · security hardening checklist
Works with
salesforce
Use cases
api development · security audit · devops
From the docs

What sf-connected-apps says it does

Salesforce Connected Apps and OAuth configuration with 120-point scoring.
SKILL.md
npx skills add https://github.com/jaganpro/sf-skills --skill sf-connected-apps

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.3k
repo stars423
Security audit3 / 3 scanners passed
Last updatedApril 27, 2026
Repositoryjaganpro/sf-skills

How do I configure OAuth flows, PKCE, JWT bearer, or ECA metadata for a Salesforce integration?

Configure Salesforce Connected Apps and External Client Apps with OAuth flows, PKCE, JWT bearer, scopes, and security hardening.

Who is it for?

Developers configuring Salesforce OAuth apps, ECAs, scopes, callbacks, and certificate-based auth.

Skip if: Skip for Named Credentials runtime callouts, permission policies, or Apex token handling without OAuth app setup.

When should I use this skill?

User touches connectedApp-meta.xml, eca-meta.xml, OAuth flows, consumer keys, or Connected App vs ECA choice.

What you get

Chosen app type, OAuth flow, hardened metadata files, and deployment-ready security decisions.

  • Scored Connected App configuration
  • OAuth or JWT bearer metadata files

By the numbers

  • 120-point scoring system across 6 configuration categories
  • Skill version 1.1.0 in jaganpro/sf-skills metadata

Files

SKILL.mdMarkdownGitHub ↗

sf-connected-apps: Salesforce Connected Apps & External Client Apps

Use this skill when the user needs OAuth app configuration in Salesforce: Connected Apps, External Client Apps (ECAs), JWT bearer setup, PKCE decisions, scope design, or migration from older Connected App patterns to newer ECA patterns.

When This Skill Owns the Task

Use sf-connected-apps when the work involves:

  • .connectedApp-meta.xml or .eca-meta.xml files
  • OAuth flow selection and callback / scope setup
  • JWT bearer auth, device flow, client credentials, or auth-code decisions
  • Connected App vs External Client App architecture choices
  • consumer-key / secret / certificate handling strategy

Delegate elsewhere when the user is:

  • configuring Named Credentials or runtime callouts → sf-integration
  • analyzing access / permission policy assignments → sf-permissions
  • writing Apex token-handling code → sf-apex
  • deploying metadata to orgs → sf-deploy

---

First Decision: Connected App or External Client App

If the need is...Prefer
simple single-org OAuth appConnected App
new development with better secret handlingExternal Client App
multi-org / packaging / stronger operational controlsExternal Client App
straightforward legacy compatibilityConnected App

Default guidance:

  • choose ECA for new regulated, packageable, or automation-heavy solutions
  • choose Connected App when simplicity and legacy compatibility matter more
  • Spring ’26 note: creation of new Connected Apps is disabled by default in orgs. For new integrations, prefer External Client Apps unless Connected App compatibility is explicitly required.

---

Required Context to Gather First

Ask for or infer:

  • app type: Connected App or ECA
  • OAuth flow: auth code, PKCE, JWT bearer, device, client credentials
  • client type: confidential vs public
  • callback URLs / redirect surfaces
  • required scopes
  • distribution model: local org only vs packageable / multi-org
  • whether certificates or secret rotation are required

---

Recommended Workflow

1. Choose the app model

Decide whether a Connected App or ECA is the better long-term fit.

2. Choose the OAuth flow

Use caseDefault flow
backend web appAuthorization Code
SPA / mobile / public clientAuthorization Code + PKCE
server-to-server / CI/CDJWT Bearer
device / CLI authDevice Flow
service account style appClient Credentials (typically ECA)

3. Start from the right template

Use the provided assets instead of building from scratch:

  • assets/connected-app-basic.xml
  • assets/connected-app-oauth.xml
  • assets/connected-app-jwt.xml
  • assets/external-client-app.xml
  • assets/eca-global-oauth.xml
  • assets/eca-oauth-settings.xml
  • assets/eca-policies.xml

If you need source-controlled ECA OAuth security metadata, retrieve it from an org first and treat the retrieved file as the schema source of truth:

  • sf project retrieve start --metadata ExtlClntAppOauthSecuritySettings:<AppName> --target-org <alias>

4. Apply security hardening

Favor:

  • least-privilege scopes
  • explicit callback URLs
  • PKCE for public clients
  • certificate-based auth where appropriate
  • rotation-ready secret / key handling
  • IP restrictions when realistic and maintainable

5. Validate deployment readiness

Before handoff, confirm:

  • metadata file naming is correct
  • scopes are justified
  • callback and auth model match the real client type
  • secrets are not embedded in source

---

High-Signal Security Rules

Avoid these anti-patterns:

Anti-patternWhy it fails
wildcard / overly broad callback URLstoken interception risk
Full scope by defaultunnecessary privilege
PKCE disabled for public clientscode interception risk
consumer secret committed to sourcecredential exposure
no rotation / cert strategy for automationbrittle long-term ops

Default fix direction:

  • narrow scopes
  • constrain callbacks
  • enable PKCE for public clients
  • keep secrets outside version control
  • use JWT certificates or controlled secret storage where appropriate

---

Metadata Notes That Matter

Connected App

Usually lives under:

  • force-app/main/default/connectedApps/

External Client App

Current source-supported ECA metadata uses multiple top-level source directories, not a single externalClientApps/ folder:

  • force-app/main/default/externalClientApps/ExternalClientApplication (.eca-meta.xml)
  • force-app/main/default/extlClntAppGlobalOauthSets/ExtlClntAppGlobalOauthSettings (.ecaGlblOauth-meta.xml)
  • force-app/main/default/extlClntAppOauthSettings/ExtlClntAppOauthSettings (.ecaOauth-meta.xml)
  • force-app/main/default/extlClntAppOauthSecuritySettings/ExtlClntAppOauthSecuritySettings (.ecaOauthSecurity-meta.xml)
  • force-app/main/default/extlClntAppOauthPolicies/ExtlClntAppOauthConfigurablePolicies (.ecaOauthPlcy-meta.xml)
  • force-app/main/default/extlClntAppPolicies/ExtlClntAppConfigurablePolicies (.ecaPlcy-meta.xml)

Important file-name gotchas:

  • the global OAuth suffix is .ecaGlblOauth, not .ecaGlobalOauth
  • the general policy suffix is .ecaPlcy, not .ecaPolicy
  • use .ecaOauthSecurity for ExtlClntAppOauthSecuritySettings

---

Output Format

When finishing, report in this order: 1. App type chosen 2. OAuth flow chosen 3. Files created or updated 4. Security decisions 5. Next deployment / testing step

Suggested shape:

App: <name>
Type: Connected App | External Client App
Flow: <oauth flow>
Files: <paths>
Security: <scopes, PKCE, certs, secrets, IP policy>
Next step: <deploy, retrieve consumer key, or test auth flow>

---

Cross-Skill Integration

NeedDelegate toReason
Named Credential / callout runtime configsf-integrationruntime integration setup
deploy app metadatasf-deployorg validation and deployment
Apex token or refresh handlingsf-apeximplementation logic
permission review after deploymentsf-permissionsaccess governance

---

Reference Map

Start here

  • references/oauth-flows-reference.md
  • references/security-checklist.md
  • references/testing-validation-guide.md

Migration / examples

  • references/migration-guide.md
  • references/example-usage.md
  • assets/

---

Score Guide

ScoreMeaning
80+production-ready OAuth app config
54–79workable but needs hardening review
< 54block deployment until fixed

Related skills

Forks & variants (1)

Sf Connected Apps has 1 known copy in the catalog totaling 34 installs. They canonicalize to this original listing.

How it compares

Use sf-connected-apps for OAuth Connected App metadata; use sf-integration for Named Credentials callouts and sf-permissions for access policies.

FAQ

Connected App or External Client App?

Prefer ECA for new regulated or packageable solutions; Connected App for legacy simplicity unless Spring 2026 blocks new Connected App creation.

What OAuth flow should I use?

Authorization code for backend web apps, PKCE for SPAs, JWT bearer for server-to-server, device for CLI, client credentials for service accounts.

Is sf-connected-apps safe to install?

Review the Security Audits panel on this page before installing in production.

Backend & APIsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.