Skip to content

NexusID

Directory / IAM demo (stand-in for Entra ID / Microsoft Graph). Creates the user after ERPNext published HR/Employee/New/1.0.

Scenario: HR employee onboarding.

Connection

flows/connections/nexusid.yaml — type: http + OAuth client credentials.

name: nexusid
type: http
base_url: "https://api.nexusid.example"
oauth:
  grant_type: client_credentials
  token_url: "https://login.nexusid.example/oauth2/v2.0/token"
  client_id: "$secret:nexusid-client-id"
  client_secret: "$secret:nexusid-client-secret"
  scope: "https://api.nexusid.example/.default"

Orchestrator caches the bearer and does not forward client_secret to egress (ADR 0011). Replace placeholder hosts; allow them in egress.http.allowed_hosts.

Secrets: nexusid-client-id, nexusid-client-secret.

Flows

Artifact Path
Workflow flows/workflows/hr_employee_create_nexusid.yaml
AMQP trigger flows/triggers/hr-employee-create-nexusid-amqp.yaml — hr.employee.new.1.0
HTTP trigger flows/triggers/hr-employee-create-nexusid-http.yaml — POST /v1/api/hr/employee-create-nexusid
Example CDM flows/artifacts/transforms/hr-employee/sample-cdm-employee.xml

Steps: CDM XML → JSON → POST /v1/directory/users → read id → xml_set_text on IAMObjectId → publish HR/Employee/CreatedInIAM/1.0.

Google Workspace in this repo is Gmail/Calendar/Drive only — not a directory connector.