SAML single sign-on
Let people sign in to Jarwis through a SAML 2.0 identity provider such as Okta, Entra ID, ADFS or Keycloak. Users are created on their first sign-in, and their groups decide their role. For OpenID Connect and LDAP see Settings → Security.
Set it up
Open the SAML settings
Go to Settings → Security → Single sign-on (SAML 2.0) (owners and admins).Give Jarwis the IdP's metadata
Either enter the IdP metadata URL (fetched when you save) or paste the IdP metadata XML.Register Jarwis at the IdP
Once the first save has generated Jarwis's signing key pair, the panel shows the values to register at the provider: the ACS URL (HTTP-POST), the SP entity ID and a link to the SP metadata XML, which you can hand to the IdP instead of typing the values. The SP signing certificate is shown too. The private key is never exposed.Map attributes and groups
Fill in the attribute names and role mapping (below).Test and enable
Click Test metadata; it reads the saved metadata and reports the IdP and its sign-on URL, or the error. Tick Enable SAML sign-in and save.
Fields
| Field | Meaning |
|---|---|
| Public base URL | Optional. Set it when Jarwis sits behind a proxy so the ACS URL and entity ID use the public address. Scheme and host only, no path. |
| SP entity ID override | Optional. Replaces the default entity ID. |
| Username attribute | Which assertion attribute becomes the username; empty means the NameID. |
| Email attribute | Attribute holding the email address. |
| Groups attribute | Attribute holding group names. Empty means Jarwis looks for groups, memberOf, Role and the ADFS groups claim. |
| Login button label | Optional text of the button on the login page (default Sign in with SAML). |
| Group → role map | One mapping per line, same format as for OIDC and LDAP. |
| Default role | Role for users in no mapped group, or refuse sign-in. |
| Generate a new SP certificate | Rotates Jarwis's signing certificate; register the new one at the IdP afterwards. |
A role map or default role cannot grant a role above your own, and only an owner can map a group to owner. A group can also map to a custom role or a role limited to one environment or cluster (operator@env:production); scoped and custom roles need Pro (see Roles & access).
Signing in
The login page shows the SAML button. After the IdP authenticates the user, Jarwis creates the account on first sign-in and sets the role from the user's groups at every sign-in, so removing someone from a group takes effect next time they sign in. SAML users have no Jarwis password, and an existing local, LDAP or OIDC account with the same name is not taken over.
What Jarwis checks
- The XML signature (on the response or the assertion), issuer, audience, recipient, validity times and that the response answers the request Jarwis started.
- Each assertion can be used only once, so a captured response cannot be replayed.
- The IdP metadata is fetched when you save or test, never at sign-in, and the fetch is subject to the same outbound-address protection as notification channels.
See also Security and Roles & access.