Zetect Admin Guide Back to zetect.inSwitch portal ⇄

Configuring Single Sign-On

Let people sign in to an application through Zetect. Zetect is the identity provider and the application is the service provider. Set up SAML 2.0 or OAuth 2.0 / OIDC, give the application Zetect's details, and test from the launchpad.

Prerequisite

The application was added with the SSO type, and your licence includes single sign-on. For SAML, the tenant's signing certificate is in place; see SAML Signing Certificate.

Required permission

Applications – View in an administrator group.

Limits

Assertions are always signed with the tenant's signing certificate and are not encrypted, even with Encrypt Assertion on.

Giving the application its sign-in details

Once single sign-on is set up, Single sign-on shows what to give the application and what Zetect holds about it.

Single sign-on section of a SAML application

To give the application its sign-in details:

  1. Open the application and select Single sign-on under Sign-in.
  2. Under Give these to Application, copy the IdP Issuer URL and Sign-in URL into the application's SSO settings.
  3. Under Signing certificate, select View or Download and give the certificate to the application.

For a SAML application you can instead select Download metadata in the header and upload the file to the application. Below that, Application's details shows what Zetect holds about the application, and Assertion and signing settings summarises how assertions are built.

Setting up SAML

To set up SAML 2.0:

  1. On Single sign-on, select Edit.
  2. Under Configure SSO Protocol, choose SAML 2.0.
  3. Fill in Service Provider Settings. If you have the application's metadata file, use Import SP metadata instead; see Importing SP metadata.
    • SP Entity ID – the application's identifier. Must match exactly what the application sends.
    • Assertion Consumer Service (ACS) URL – where Zetect posts the SAML response after sign-in.
    • Single Logout (SLO) URL – optional; where logout requests are sent.
  4. Complete Identity & Signing:
    • NameID Format – Email Address, Persistent, Transient or Unspecified.
    • Subject Attribute (NameID) – an identity attribute, or an expression, sent as the user's NameID. Defaults to the internal user ID.
    • Response and Assertion – Signed or Unsigned.
    • Signature Algorithm and Digest Algorithm – SHA-256 is recommended.
    • IdP Issuer URL – leave blank to use the generated URL.
  5. Under Attribute Statements, select Add Attribute for each extra attribute the application needs. Enter the SAML Attribute Name and choose the source: an Identity Attribute, or User Roles (Resource Groups) to send all the user's Resource Control groups as several values.
  6. Select Save changes in the bar at the bottom.
  7. Test by launching the application from the end user launchpad.
SP Entity IDhttps://crm.example.com
ACS URLhttps://crm.example.com/sso/saml/acs
NameID FormatEmail Address
Attribute StatementsfirstName, lastName, department

Importing SP metadata

To fill the SAML settings from the application's metadata:

  1. In edit mode, select Import SP metadata at the top of Service Provider Settings.
  2. Select Upload XML file, or paste the metadata XML.
  3. Select Review. Each setting that would change is listed with its current and imported value. Settings that already match are not listed.
  4. Clear anything you don't want. If the metadata lists several ACS URLs, choose one.
  5. Select Apply … changes.
  6. Select Save changes to keep them.

The import fills the SP Entity ID, the ACS URL (HTTP-POST only), the SLO URL, the NameID Format, assertion signing, the Signature Certificate and new Attribute Statement rows. It only fills the form; nothing is stored until you save the application. A certificate from the metadata is stored for reference only.

Invalid XML, a DOCTYPE, files over 1 MB, identity provider metadata, files describing several applications and metadata with no entityID are rejected with a message. The review warns about anything risky, such as an http ACS URL or expired metadata. The metadata's own signature is not checked, which is why you review the values.

Setting up OAuth 2.0 / OIDC

To set up OAuth 2.0 / OIDC:

  1. On Single sign-on, select Edit.
  2. Under Configure SSO Protocol, choose OAuth 2.0 / OIDC.
  3. Under Client Settings, select Generate for a Client ID and Client Secret, and give them to the application.
  4. Enter the Redirect URIs, one per line. They must be HTTPS URLs.
  5. Optionally enter Post-Logout Redirect URIs.
  6. Under Protocol Settings, check the Grant Types (Authorization Code, Client Credentials, Refresh Token), the Scopes, such as openid profile email, and the Token Endpoint Auth Method.
  7. Under Claims Mapping, select Add Claim, or Add standard defaults, and choose which identity attribute fills each claim.
  8. Select Save changes in the bar at the bottom.
  9. Test by launching the application from the end user launchpad.

The client secret then shows as Stored securely. Leave it blank when editing to keep it.

Controlling who sees the application

An SSO application appears on a person's launchpad when Show in the end user launchpad is on under General and the person passes its Who can access rules. With no rules, everyone who can sign in can see and use it. See Managing Who Can Access Rules.

Troubleshooting

  • OIDC sign-in fails. A redirect URI mismatch is the most common cause. Check that the application's redirect URI is listed exactly.
  • SAML sign-in fails after a change. Give the application new metadata whenever you change the protocol or the tenant certificate, or sign-in breaks at the application's end.
  • The application rejects the response. Check that the SP Entity ID matches exactly what the application sends.