User Guide · Administer · SAML single sign-on

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.

Scope Jarwis supports SP-initiated sign-in: the user starts at the Jarwis login page. IdP-initiated sign-in and single logout are not supported.

Set it up

  1. Open the SAML settings

    Go to Settings → Security → Single sign-on (SAML 2.0) (owners and admins).
  2. Give Jarwis the IdP's metadata

    Either enter the IdP metadata URL (fetched when you save) or paste the IdP metadata XML.
  3. 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.
  4. Map attributes and groups

    Fill in the attribute names and role mapping (below).
  5. 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

FieldMeaning
Public base URLOptional. 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 overrideOptional. Replaces the default entity ID.
Username attributeWhich assertion attribute becomes the username; empty means the NameID.
Email attributeAttribute holding the email address.
Groups attributeAttribute holding group names. Empty means Jarwis looks for groups, memberOf, Role and the ADFS groups claim.
Login button labelOptional text of the button on the login page (default Sign in with SAML).
Group → role mapOne mapping per line, same format as for OIDC and LDAP.
Default roleRole for users in no mapped group, or refuse sign-in.
Generate a new SP certificateRotates 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.