JIT Sandbox Authentication
How JIT Authentication Works
┌─────────────────────────────────────────────────────────────────┐
│ JIT Authentication Flow │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Request sandbox access │
│ │ │
│ ▼ │
│ sfp-server checks: Is this a JIT sandbox? │
│ │ │
│ │ Yes │
│ ▼ │
│ Retrieve parent production credentials │
│ │ │
│ ▼ │
│ Connect to production org │
│ │ │
│ ▼ │
│ Call Salesforce Sandbox Auth API │
│ POST /services/data/vXX.0/tooling/sandboxAuth │
│ │ │
│ ▼ │
│ Receive sandbox auth fields │
│ │ │
│ ▼ │
│ Return credentials to user │
│ (accessToken + instanceUrl OR sfdxAuthUrl) │
│ │
└─────────────────────────────────────────────────────────────────┘Benefits of JIT Authentication
Traditional Approach
JIT Approach