Everything needed to connect an identity provider to Velaris, on one page: which value goes where, what each product calls it, and how to let Velaris read most of it for you — plus the service-provider key pair that unlocks signed sign-in requests, encrypted assertions and single sign-out. No environment variables, no config files, no support call.
A SAML provider is a row in sso_providers with provider = 'saml', created and edited in Studio → Admin Console → SSO. There is nothing to set in .env and nothing to restart: a complete, enabled row makes the sign-in button appear, and disabling the row removes it immediately.
SamlConfig.missing() refuses a half-configured row on the request path, so a provider that is not usable simply never appears — a flag would be a second switch that could disagree with the first.Every identity provider publishes a federation metadata document, and it contains the three values that are otherwise the fiddliest to copy: the issuer, the sign-in URL and the signing certificate. Paste its URL into Import from IdP metadata on the SSO form and press Import.
1. Create the application at your identity provider (see the two walkthroughs below). This step cannot be automated — SAML has no registration protocol, so the app has to exist before anything can read it.
2. Copy its metadata URL.
3. Paste, Import, review the filled fields, then save.
Import fills the form; it saves nothing until you press save. That is deliberate: an import that wrote straight through would let a single fetch repoint a live sign-in.
If this deployment cannot reach the internet, expand Paste the XML instead and paste the document itself. Nothing is fetched — and because no URL is stored, there is no automatic certificate renewal for that provider.
| Velaris field | Okta calls it | Entra calls it | Required |
|---|---|---|---|
IdP Entity ID | Identity Provider Issuer | Microsoft Entra Identifier | Yes |
IdP SSO URL | Identity Provider Single Sign-On URL | Login URL | Yes |
IdP signing certificate | X.509 Certificate | Certificate (Base64) | Yes — one or more |
IdP single logout URL | Sign-Out URL | Logout URL | No |
The certificate field accepts either a bare base64 body or a full -----BEGIN CERTIFICATE----- block, whichever the console gives you.
The SSO form prints these for the provider you are editing, with the tenant already filled in. Substitute your own host and tenant.
| Value | Okta / Entra field |
|---|---|
https://your-host/api/v1/auth/saml/<tenant>/acs | Single sign-on URL (Okta) / Reply URL (Entra) |
velaris-studio — or whatever you set as SP Entity ID | Audience URI (Okta) / Identifier (Entra) |
https://your-host/api/v1/auth/saml/<tenant>/metadata | SP metadata, if the IdP prefers to import |
https://your-host/api/v1/auth/saml/<tenant>/slo | Single sign-out URL — only when single logout is switched on |
| The SP signing / encryption certificate | Only once you have generated an SP key pair — see below |
<tenant> segment in the ACS URL is load-bearing. Destination and Recipient are compared against the configured ACS URL, and the route's tenant segment must match it. That is what stops a valid assertion being replayed into another tenant. It is also where the sign-in button's link comes from, so an ACS URL of any other shape means no button appears. The form refuses to save one that does not end /auth/saml/<tenant>/acs.1. Okta Admin → Applications → Create App Integration → SAML 2.0.
2. Single sign-on URL: the ACS URL above. Audience URI: your SP Entity ID.
3. Name ID format: EmailAddress. Application username: Email.
4. Attribute statements: email, firstName, lastName. Group attribute statement: name it groups, filter Matches regex .*.
5. Assign the app to your users. Okta refuses to issue an assertion for anyone who is not assigned — before Velaris is involved at all.
6. On the app's Sign On tab, open View SAML setup instructions for the issuer, SSO URL and certificate, or copy the metadata URL and import it.
localhost works as a reply URL for a local trial: the assertion travels through the browser, not from Okta's cloud to your machine.1. Entra admin centre → Enterprise applications → New application → Create your own application → “Integrate any other application you don't find in the gallery”.
2. Single sign-on → SAML. In Basic SAML Configuration set Identifier to your SP Entity ID and Reply URL to the ACS URL. Leave Sign on URL blank.
3. Optional: Attributes & Claims → Add a group claim → Security groups, source attribute Group ID.
4. Users and groups → Add user — assign people individually. Group-based assignment is an Entra ID P1 feature; per-user assignment is not.
5. Copy the App Federation Metadata Url from the SAML Certificates panel and import it.
| Setting | Effect |
|---|---|
| Allowed email domains | A user who authenticates but has no Velaris account is created only if their email domain is listed. Empty means auto-provisioning is off — existing accounts only. |
| Create an account on first sign-in | The same switch, stated separately, so a deliberate “existing accounts only” survives someone adding a domain. |
| Default roles | Applied only to accounts created by auto-provisioning. Existing users keep the roles they have. superadmin is refused. |
| Adopt an existing account by email | Leave off. See below. |
| Allowed landing paths | Where a completed sign-in may land. The first is used when the IdP sends no RelayState. Must be a path on this server. |
When a metadata URL is stored, Velaris re-reads it every six hours and adds any new signing certificate it finds. Both certificates verify while they overlap, so an IdP's routine key rollover costs no downtime and needs no intervention.
| Situation | What happens |
|---|---|
| New certificate published | Added. The old one stays until you remove it by hand. |
| Certificate disappears from metadata | Nothing. Refreshes never remove — a truncated response must not be able to strip the key that currently works. |
| Issuer or sign-in URL changed | Not applied. Flagged on the provider card for review. |
| Metadata unreachable | Nothing changes — same certificates, same URLs, still enabled. The error is noted on the card. |
| Certificate nearing expiry | The card shows the expiry date at all times, and warns inside 30 days. |
The metadata URL must be https and is checked against the outbound guard on write and again before every fetch, so it cannot be used to reach internal infrastructure.
Out of the box, Velaris is a passive service provider: it checks the identity provider's signature and holds no key of its own. That is enough for ordinary sign-in. Three things a security review usually asks for are not possible without one, and all three become available the moment you generate it.
| Feature | What it gives you |
|---|---|
| Signed sign-in requests | The IdP can verify that a sign-in request really came from Velaris. Some deployments — ADFS in particular — require it. |
| Encrypted assertions | The IdP seals the assertion to your public key, so the contents are unreadable to anything in between, including the browser that carries it. |
| Single sign-out | Signing out of the IdP ends the Velaris session too, and the other way round. |
1. Open the provider under Admin Console → SSO and press Generate SP key. Velaris creates an RSA key and a self-signed certificate valid for three years. The certificate is shown; the private half never leaves the server and is never returned by any endpoint.
2. Re-import the SP metadata (/api/v1/auth/saml/<tenant>/metadata) at your identity provider, or upload the certificate by hand. It is published for both signing and encryption.
3. Only now turn on Sign sign-in requests, or switch on encryption at the IdP.
On the algorithms: RSA-OAEP key transport and AES-CBC or AES-GCM content encryption are supported, which covers the Okta and Entra defaults. The obsolete RSA-1.5 key transport is refused rather than supported — it is what the classic attacks on encrypted XML target. Every decryption failure answers identically, for the same reason every sign-in failure does.
Switch on Single logout and fill in the IdP's sign-out URL, and sessions end in both directions.
| Direction | What happens |
|---|---|
| User signs out of the identity provider | The IdP calls Velaris, which ends every session and device for that person, then redirects back with a receipt. |
| User signs out of Velaris | Velaris ends the local session first, then hands the browser to the IdP to end its own. If the IdP is unreachable, or the user closes the tab, they are still signed out here. |
Velaris's own sign-out address is derived from the ACS URL — the same URL with /acs replaced by /slo — and is published in the SP metadata, so there is nothing extra to configure. It appears only when single logout is switched on.
When a user starts at the Velaris sign-in page, Velaris remembers the request it sent, and the assertion that comes back must answer that request. One minted for a different sign-in attempt cannot be posted into this one, and each request can be answered exactly once.
| Tool | Where | What it tells you |
|---|---|---|
| Assertion tester | Admin Console → Identity | Paste a captured SAMLResponse: it runs the real verifier and reports the mapped attributes and the decision the live path would reach. Issues nothing, provisions nobody, and can be repeated while you fix an attribute map. |
| Provisioning log | Admin Console → Identity | Every decision including refusals, with the reason. |
| Unmapped groups | Admin Console → Identity | Groups the IdP asserted that map to nothing. |
| SP metadata | /api/v1/auth/saml/<tenant>/metadata | Public. Hand it to the IdP administrator instead of dictating values. |
| Action | Privilege |
|---|---|
| View providers, import metadata | identity.sso.read — importing writes nothing, so it does not need the configure privilege |
| Create, edit or delete a provider | identity.sso.configure |
| Generate or replace the SP key pair | identity.sso.configure — it writes key material, and replacing it invalidates the old one |
| Link an account to an IdP identity, manage group mappings | identity.provisioning.write |
These are privileges, not roles. Grant them to any role — a developer, for instance — under Access Group Admin → Platform Roles, without a code change or a restart.