Spark Linky

Named Credentials vs External Credentials

6 branches · 72 ideas

Coredistinction01Named credentialCallout endpoint URLDestination configurationNamed Credential metadata typeExternal credentialAuthentication configurationAuthentication protocol definitionExternal Credential metadata typeCredential relationshipNamed Credential references ExternalCredentialEndpoint and authentication remain distinctTwo linked configuration recordsExample pairingsBilling endpoint ↔ OAuth configurationInventory endpoint ↔ JWT configurationERP endpoint ↔ Basic authenticationEndpoint setup02Service URLhttps://api.example.com/v1Service hostname: api.example.comBase path: /v1Transport optionsEnabled for Callouts toggleOutbound network connection selectionMutual TLS client certificateRequest optionsGenerate Authorization Header toggleAllow Formulas in HTTP HeaderAllow Formulas in HTTP BodyCredential linkExternal Credential selectorExisting OrdersAuth entrySave selection with endpointAuthenticationsetup03Authentication protocolsOAuth 2.0 browser flowJWT bearer flowAWS Signature Version 4Principal identitiesNamed principal: shared identityPer-user principal: individual identityMultiple principals per credentialProtocol parametersOAuth client IDOAuth scope: orders.readJWT audience claimSecret materialOAuth client secretOAuth refresh tokenAWS secret access keyPrincipalaccess04Identity scopeNamed principal: integration@acme.com forauthorized usersPer-user principal: Alice uses alice@acme.comPer-user principal: Bob uses bob@acme.comPrincipal grantsPermission set → External CredentialPrincipal AccessProfile → External Credential Principal AccessGrant access to specific principal entriesUser eligibilityAssigned permission set grants principal accessProfile grant applies to profile membersNo principal grant: no principal accessAccess verificationCheck user’s Permission Set AssignmentsInspect External Credential Principal AccessentriesConfirm grant matches intended principalCallout flow05Request constructionHttpRequest.setEndpoint('callout:Orders_API/orders/123')HttpRequest.setMethod('GET')Http.send(request)Runtime routingOrders_API named credential lookup/orders/123 appended to destinationLinked external credential receivesauthentication requestAuthentication deliveryRuntime principal identity selectedOAuth access token retrievedAuthorization header added to outboundrequestResponse handlingRemote API validates access tokenHttpResponse.getStatusCode()HttpResponse.getBody()Lifecyclemanagement06DeploymentDeploy configurations through Metadata APIDeploy external credentials before namedcredentialsRun Metadata API checkOnly validationSecret ProvisioningPopulate secrets separately in each target orgProvision secrets through Connect REST APIReauthorize OAuth connections afterdeploymentTroubleshootingInspect Apex debug logs for callout failures401 responses: check expired credentials403 responses: check remote API permissionsLegacy MigrationInventory legacy named credentials and calloutaliasesRecreate legacy credentials using the newmodelPreserve aliases to avoid Apex editsNamedCredentials vsExternalCredentials6 BRANCHES · 24 TOPICS · 72 IDEAS

Tap a branch to zoom in · pinch to explore

100%
Made with Spark Linky