ScaleDock enterprise identity
Enterprise customers expect their identity provider to sign users in, provision and deprovision them, and revoke access the moment something changes. This skill wires those standards into a ScaleDock product and lets PermDock turn what the IdP says into permissions. The spec skills carry the rules of each standard.
Follow the workflow below step by step. Only add the parts the customer needs; each step names the input that switches it on.
Inputs (fill in, or ask before starting)
- SSO: yes or no, the customer's IdP (Okta, Entra ID, Google Workspace, Keycloak, other), and the protocol (OIDC or SAML).
- Sign-in: passkeys (WebAuthn) yes or no; an assurance target (NIST SP 800-63-4 IAL, AAL and FAL) yes or no.
- Provisioning: SCIM yes or no.
- Revocation: Shared Signals (CAEP) yes or no; Back-Channel Logout yes or no.
- Decoupled approval: CIBA yes or no (the user confirms on a separate device, for example a call-center or agent-initiated action).
- Security profile: FAPI 2.0 yes or no (regulated finance, open banking, high-value APIs).
- Workloads: SPIFFE yes or no (service-to-service calls across trust domains); WIMSE yes or no (workload tokens and proofs on each HTTP call).
- Tenancy: the scope a directory maps onto (usually the organization).
Skills to install
npx skills add ScaleDockHQ/scaledock-skills --skill openid-connect --skill saml --skill webauthn --skill scim --skill shared-signals --skill fedcm --skill credential-management --skill dbsc --skill fido-ctap --skill digital-credentials
npx skills add ScaleDockHQ/scaledock-skills --skill nist-800-63 --skill ciba --skill fapi --skill spiffe --skill wimse # only when selected
npx skills add ScaleDockHQ/PermDock
openid (the umbrella over every OpenID Foundation spec) helps when the customer names a profile this skill does not cover, such as iGov or HEART. scaledock-repo-standard (references/auth.md, references/data-permissions.md) owns Supabase Auth, tenancy and RLS.
Invariants
- The spec skills win on protocol details. ID token validation follows
openid-connect; SAML responses and assertions followsaml; passkey ceremonies followwebauthn; assurance levels follownist-800-63; backchannel authentication followsciba; provisioning endpoints followscim; event tokens followshared-signals; profile rules followfapi; SVID checks followspiffe; workload tokens and proofs followwimse. - The IdP authenticates; PermDock authorizes. Directory groups and role claims become memberships and roles, and PermDock decides from those. No handler branches on a raw group name.
- SCIM writes, it never decides. The SCIM endpoint stores users and groups per tenant; PermDock reads them through a membership source and drops role names that are not assignable.
- Deprovisioning is immediate. A SCIM deactivation, a CAEP
session-revokedor a Back-Channel Logout invalidates snapshots, closes open streams and cancels pending approvals for that principal. - Tenants are isolated. Every SCIM token, SSO connection and SSF stream belongs to one tenant, and nothing from one tenant's IdP can change another tenant's memberships.
- Workloads are not users. A verified SPIFFE ID, WIMSE workload identifier or CI token becomes a workload principal, never a user, and gets only the permissions granted to that workload.
Workflow
- Set the inputs. Agree with the user which of SSO, passkeys, an assurance target, SCIM, revocation, CIBA, FAPI, SPIFFE and WIMSE apply per tenant. ✓ Every selected part names its IdP and tenant mapping.
- SSO and sign-in. Connect the IdP through Supabase Auth (SAML as
samldescribes, or OIDC) or, for a custom resource server, validate tokens asopenid-connectandjwtdescribe and resolve the subject withsubjectFromJwtfrompermdock/jwt. ->references/stack.mdOffer passkeys aswebauthndescribes, and with an assurance target pick the IAL, AAL and FAL fromnist-800-63and check the sign-in methods and federation meet them. ✓ A user from the IdP signs in to the right tenant, a token or assertion from another issuer is rejected, and the selected AAL is enforced. - Provisioning. Mount
scimHandlerfrompermdock/scimper tenant, followingscimfor endpoints, filtering and PATCH, and passdirectoryMembershipSource(store)asmemberships. ✓ Creating, updating and deactivating a user in the IdP changes what that user can do on the next request. - Revocation. Mount the
permdock/ssfreceiver (push or poll) asshared-signalsdescribes, and handle Back-Channel Logout as a second input. Passrevocationsandapprovalsso streams close and approvals cancel. ✓ Asession-revokedevent ends that session's access without waiting for a cache to expire. - Profiles and workloads. With FAPI, apply
fapiand use the PermDock JWTprofile: 'fapi2'option andpermdock openapi emit --profile fapi2. With CIBA, act as a client of the customer's CIBA-capable OpenID Provider ascibadescribes, and treat the returned ID token as the human confirmation on a PermDock approval. With SPIFFE, verify SVIDs asspiffedescribes; with WIMSE, verify the workload token and its proof aswimsedescribes. Map both to workload principals. ✓ The selected profile's checks pass. - Test and audit. Add scenario tests for join, role change, deactivation and revocation with
permdock/testing, then runaudit-permissionsfromScaleDockHQ/PermDock. ✓ Tests pass and the audit has no blocker.
Verify before done
- Every selected spec skill's Verify list passes.
- No handler reads a raw IdP group name; roles come from PermDock memberships.
- Deactivation and
session-revokedtake effect on the next request and close open streams. - SCIM tokens, SSO connections (OIDC and SAML) and SSF streams are scoped to one tenant each.
-
permdock doctorreports no error, andpnpm verifypasses.
Reference index
references/stack.md: each spec mapped to the ScaleDock stack and the PermDock adapter.