Skip to content

Cookbook Enable SSO

Andrew MacGaffey edited this page Jul 28, 2026 · 2 revisions

Cookbook: Enable SSO

Add company single sign-on on top of tokens - the full posture, where people are sent to their company login and then mint their own tokens. This is the ordered task; the concepts and login flow are in Security: Advanced - Single sign-on and the configuration mechanism (files, defaults, couplings) in Configuration: Advanced - Single sign-on.

Audience: Operator, with your identity-provider administrator for the registration step. Prerequisites: Cookbook: Enable Tokens done, and a SAML identity provider you can register a service provider with.


Before you start

  • Full is tokens-only plus the login doorway. Until the single sign-on files are provisioned, the deployment stays at tokens-only.
  • Single sign-on changes how people in a browser authenticate (the dashboard bounces them to company login). Command-line callers still carry a personal token, exactly as under tokens-only.

Steps

  1. Drop the SAML files into resources/rest.sso/ on the gateway deploy project: the SAML configuration, the service-provider keystore, the identity provider's certificate, and the doorway's own signing keystore. (→ Configuration: Advanced - Single sign-on)
  2. Give the gateway the doorway's public signing certificate, so it verifies single sign-on access tokens offline. (→ Configuration: Advanced - Single sign-on)
  3. Set the allowed-origins for the dashboard - it calls the gateway cross-origin. (→ Configuration: Advanced - Single sign-on)
  4. Confirm the two couplings agree. Issuer and audience must match across the doorway and the gateway (they already agree at their defaults), and the certificate the gateway holds must be the public half of the doorway's signing keypair. (→ Configuration: Advanced - Single sign-on)
  5. Register the service provider at your identity provider: the entityID MetaFluentJMS (keep the default so existing registrations still match), the doorway's assertion-consumer (ACS) URL, and the role attribute that delivers metafluent-admin / metafluent-guest. (→ Security: Advanced - The company-login contract)
  6. Bring the doorway up (restart, or deploy the -cfg-<tag> image if you baked the config in).

Verify

  • Dashboard: open it - the browser bounces to company login and returns signed in, with no token handling by the user.
  • Pasted URL: paste an API URL (the doorway host) into a browser - after the login bounce it returns the raw result.
  • Self-report: the configuration self-report shows the gateway with single sign-on enforcement armed (see Configuration: Basics).
  • Roles: a user in the metafluent-admin group can mint their own token at the token page; a metafluent-guest user gets look-only access.

If single sign-on calls are silently rejected, re-check step 4 - a mismatched issuer / audience or an unpaired signing certificate fails every token with no startup error.


Turn it off

Remove the single sign-on files from resources/rest.sso/, along with the gateway's signing certificate and allowed-origins, and restart. The deployment falls back to tokens-only - personal tokens stay enforced; only the company-login layer is gone.


Related pages

Clone this wiki locally