Web → SAML applications

With the single sign-on (SSO) module installed, the appliance acts as a SAML 2.0 identity provider: an external web application that supports SAML can let…

With the single sign-on (SSO) module installed, the appliance acts as a SAML 2.0 identity provider: an external web application that supports SAML can let users in by saying “ask the appliance who this is”. The user sees the same sign-in page as Atlas, with the same second factor (OTP or passkey), or gets in without typing anything from the PCs in the domain. This page registers the applications and says who is allowed in.

How SSO works as a whole (automatic sign-in from PCs, passkeys, OTP) is explained in Core concepts and in the single sign-on settings (System → Settings → Single sign-on (SSO)); here there is only the part that concerns applications.

The supported applications are generic web applications and Google Workspace (which is registered by hand). Microsoft 365, which federates a whole domain, is not among them.

Before registering an application

You have two ways to give the appliance the application’s data, and one to give the application the appliance’s data.

  • From the application to the appliance: the application usually publishes its metadata (an XML file or an address that returns it). If it does not publish it, you need its Entity ID and the ACS address (where it receives the sign-in outcome).
  • From the appliance to the application: on the page, when no application is selected, the «Details to enter in the application» panel shows what the application asks for: «Metadata address», «Entity ID (issuer)», «Sign-in and sign-out URL» and «Signing certificate». Each has a «Copy» icon. Many applications read everything from the metadata address; others ask for the other three values.
The panel with the appliance's dataThe panel with the appliance's data
The panel with the appliance's data

The list

The bar shows «SAML applications» with the «Refresh» and «Register application» icons. The search filters by name, Entity ID and groups. Each row shows:

  • the name, preceded by a padlock if access is limited to groups;
  • the application’s Entity ID;
  • the allowed groups, or «Every user of the domain»;
  • in amber, if needed, a warning about groups that let nobody in (see “Who may sign in”).

Registering an application

The «Register application» icon opens a dialog. At the top two buttons choose the mode: «From metadata» and «By hand».

From metadata

Field What it means
«Name» what the application is called in the console and on the choice page; required, 100 characters at most
«Metadata address» the URL to download the metadata from (https://…)
«Or paste the metadata XML» the content of the metadata. If you fill in both, the XML wins

The downloaded metadata must weigh 1 MB at most and arrive within 10 seconds. The address cannot be an internal network address (private, loopback, link-local) or a name that resolves to one: the appliance does not go and query your network. For an internal application, download the metadata with a browser and paste the XML.

By hand

Field What it means
«Name» as above
«Application entity ID» the application’s identifier, a URI or a URN without spaces (3–512 characters)
«ACS URL (where the application receives the sign-in)» the address, necessarily https://…, to which the sign-in outcome is delivered
«User identifier (NameID)» which user datum identifies the person to the application: «E-mail address» (default) or «Username»

The manual mode is for applications that do not publish metadata, such as Google Workspace. The response and the assertion are signed.

When you press «Register» the application appears in the list and is selected. The «Cancel» button closes the dialog.

Two applications cannot have the same Entity ID: «An application with this entity ID is already registered.»

An application’s detail

With an application selected, the detail has three blocks.

«Application»

Field What it means Typical value
«Name» the displayed name ERP
«User identifier (NameID)» «E-mail address» or «Username»: the datum with which the application recognizes the user «E-mail address»
«Application entity ID» read-only, with «Copy»
«ACS URL (where the application receives the sign-in)» read-only, with «Copy»
«Direct sign-in link» appears only if «Sign-in started from the portal» is on (see below): it is the link from which the user opens the application already authenticated

«Who may sign in»

The list of the domain’s groups. With no groups (default) all the domain’s users get in; with one or more groups, only their members, also through nested groups. You add a group by choosing it from the list («Pick a group»).

The console checks that the groups exist in the directory: «“Who may sign in”: the group “<group>” is not in the directory, or the directory does not answer. Choose among the groups in the list.» A group that was already saved and has meanwhile disappeared from the directory stays, so that the rest of the module can still be saved, but lets nobody in: the list («No effect: …» or «Nobody can sign in») and the detail say so in amber. If none of the chosen groups exists, the application lets nobody in: remove the groups to open it to everyone or choose existing ones.

«Attributes sent»

The names with which the application receives the user’s data. Change them only if the application’s documentation indicates others.

Field Default name
«Username» uid
«E-mail» email
«First name» givenName
«Last name» sn
«Groups» groups

A field left empty returns to the default name. Names cannot contain spaces.

At the bottom, «Save» and, with changes in progress, «Reset». After saving «Application saved» appears; if the single sign-on server does not apply the change you read «The change was saved, but the sign-in server did not apply it: try again shortly.»

Deleting an application

The «Delete application» icon asks: «Delete the application “<name>”? Nobody will be able to sign in to it through single sign-on until it is registered again.» When registering it again, the configuration on the application’s side has to be redone only if its Entity ID or the ACS URL change.

Sign-in started from the portal

Normally the user starts from the application (which sends them to the appliance for sign-in). With the System → Settings → Single sign-on (SSO) → «Sign-in started from the portal» switch (off by default) the user can also start from a link of the appliance: each application then has, in its detail, the «Direct sign-in link». The block’s button is «Apply».

For the technician Each application is a SAML client of Keycloak’s edon realm (marked edon.saml=1), with slug, groups and attribute names in the client’s attributes: there is no second store, the dump of the sso database already saves it. An application limited to groups gets a realm role edon-app-<slug> assigned to the chosen groups and its own sign-in flow that refuses whoever lacks the role. The slug (lowercase, digits and hyphens, up to 32 characters; photos is reserved) is derived by the console from the name. Groups are looked up in Keycloak by cn, while the selector shows the sAMAccountName: they coincide for groups created by Atlas; a group renamed in Windows turns out to be “not found”.

Example: registering the business application from metadata

Situation. The business application (erp.johnsmith.test) supports SAML and publishes its metadata at https://erp.johnsmith.test/saml/metadata.

Steps.

  1. Web → SAML applications, «Register application» icon.
  2. Choose «From metadata».
  3. «Name»: ERP.
  4. «Metadata address»: https://erp.johnsmith.test/saml/metadata.
  5. Press «Register».
  6. Deselect the application: on the right the «Details to enter in the application» panel appears. Press «Copy» next to «Metadata address» and paste the value in the business application’s SAML sign-in configuration page.

Check. Open the business application in a private window: it sends you to the appliance’s sign-in page; after the password and the OTP code (or with Kerberos from a PC in the domain) you return to the application already authenticated.

If something goes wrong. «The metadata could not be downloaded from that address.»: the appliance does not reach the URL, or it resolves to an internal address (the application is on a private network). Open the URL with your browser, save the XML and paste it in the «Or paste the metadata XML» field.

Example: Google Workspace, registered by hand

Situation. John Smith Ltd uses Google Workspace for the johnsmith.test domain. It wants to let users in with the appliance’s credentials. Google does not publish the application’s metadata.

Steps.

  1. Web → SAML applications, «Register application» and choose «By hand».
  2. «Name»: Google Workspace.
  3. «Application entity ID»: google.com/a/johnsmith.test.
  4. «ACS URL (where the application receives the sign-in)»: https://www.google.com/a/johnsmith.test/acs.
  5. «User identifier (NameID)»: «E-mail address».
  6. Press «Register».
  7. In Google’s admin console, on the third-party SSO sign-in page, enter the appliance’s data you find in the «Details to enter in the application» panel (deselect the application to see it): «Sign-in and sign-out URL» and «Signing certificate», which are the ones Google asks for. The metadata address is not needed.

Check. The user jsmith, opening https://mail.google.com/a/johnsmith.test, is sent to the appliance and comes back into Google authenticated.

If something goes wrong. If Google says the user does not exist, check that the user’s email address in Active Directory is that of the johnsmith.test domain: the NameID «E-mail address» sends that one.

Example: limiting an application to the administration group

Situation. The business application must be open only to those who work in administration (jgreen, jbrown).

Steps.

  1. Select ERP in the list.
  2. In «Who may sign in» choose the administration group from «Pick a group».
  3. Press «Save».

Check. In the list the row has the padlock and the groups line says administration. With pblack (group production) access to the business application is refused by the appliance, with jgreen it succeeds.

If something goes wrong. If the row shows the amber warning «Nobody can sign in», the chosen group is not found by the sign-in server: re-check the name in Active Directory → Groups or remove the group.

Steps.

  1. System → Settings → Single sign-on (SSO): turn on «Sign-in started from the portal» and press «Apply».
  2. Go back to Web → SAML applications and select ERP: in the «Application» block the «Direct sign-in link» appears.
  3. Press «Copy» and put the link in an internal page or in your colleagues’ favorites.

Check. Opening the link from an already authenticated browser takes you to the business application without going through its sign-in page.

Error messages

Message Meaning
«Single sign-on is not on.» the module is not on
«The metadata could not be downloaded from that address.» URL unreachable, too slow, too big or internal
«The metadata is not valid.» the XML cannot be read
«The metadata does not describe a SAML application.» it is metadata of another kind
«An application with this entity ID is already registered.» duplicate
«Please review the highlighted fields.» a field is not valid; «Required» under the field
«The application no longer exists.» deleted by another administrator

Limits

  • A SAML application sees no user data beyond the five attributes in the table.
  • The appliance’s internet name is part of the single sign-on addresses: if you change it (see Mail, “Changing the internet name”), the applications must be reconfigured with the new metadata.
LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer