Vendor configuration recipe; review against your vendor version. This page is not evidence of fresh external interoperability. Release verification scope.
Integrations · SAML 2.0
GitHub Enterprise SSO
Configure SAML 2.0 SSO for GitHub Enterprise Server and GitHub Enterprise Cloud (organization-level SAML). Covers SCIM provisioning for automatic team and membership sync.
Two products, same guide: GitHub Enterprise Server (GHES) and GitHub
Enterprise Cloud (GHEC) both use SAML 2.0 for SSO but configure it in different panels.
Sections below are labelled accordingly.
Prerequisites
- GitHub Enterprise Server ≥ 3.0 or GitHub Enterprise Cloud organization with SSO enabled
- GitHub organization owner or Enterprise admin role
- Clavex at
https://id.acme.eu, org slugacme
Step 1 — Clavex SAML Metadata
| Parameter | Value |
|---|---|
| IdP Entity ID | https://id.acme.eu/acme/saml |
| SSO URL | https://id.acme.eu/acme/saml/sso |
| Certificate | https://id.acme.eu/acme/saml/idp/metadata → X509Certificate |
Step 2a — GitHub Enterprise Server Configuration
- Go to Site Admin → Management Console → Authentication
- Select SAML
- Fill in:
Field Value Single sign-on URL https://id.acme.eu/acme/saml/ssoIssuer https://id.acme.eu/acme/samlSignature method RSA-SHA256Digest method SHA256Name identifier format PersistentCertificate Paste Base64 from Clavex metadata - Under Attribute statements, map:
GitHub attribute SAML attribute usernamepreferred_usernameemailemailfull_namenamekeys(optional) ssh_keys - Click Save settings and then Test SAML configuration
Step 2b — GitHub Enterprise Cloud (Organization)
- Go to your GitHub Organization → Settings → Authentication security
- Check Enable SAML authentication
- Fill in:
Field Value Sign-on URL https://id.acme.eu/acme/saml/ssoIssuer https://id.acme.eu/acme/samlPublic certificate Paste full PEM certificate from Clavex metadata Signature method RSA-SHA256Digest method SHA256 - Click Test SAML configuration before saving
Step 3 — Register GitHub as SP in Clavex
Register in the organization console. Create the matching OIDC application or downstream SAML application using its actual supported configuration. Copy the exact callback and required client credentials into the vendor configuration below. The management API uses an organization ID and typed request fields; follow the current OIDC guide and release API schema, rather than the obsolete client_name/scopes recipe. Keep credentials server-side.
Step 4 — SCIM Provisioning (optional)
GitHub Enterprise Cloud supports SCIM for automatic user and team provisioning. Enable it in Clavex Admin → Provisioning → add a SCIM target pointing at:
| Field | Value |
|---|---|
| SCIM base URL | https://api.github.com/scim/v2/organizations/acme-corp |
| Authentication | Bearer token (GitHub personal access token with admin:org) |
| Supported operations | Create, Update, Deactivate users; Sync groups as teams |
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
SAML response was not valid |
Certificate mismatch or assertion expired | Verify certificate in GitHub matches Clavex IdP cert; check clock sync |
| Username attribute missing | preferred_username not in assertion |
Add custom attribute mapper in Clavex for the preferred_username claim |
| SCIM not syncing | PAT expired or wrong scope | Regenerate GitHub PAT with admin:org and read:user scopes |
| Members still see personal login | SAML not enforced yet | Enable Require SAML SSO in GitHub Org Settings → Authentication Security |