Skip to main content

Northgrid

LumoAuth as the identity provider of a company: employees sign in once, against the directory, and reach an old SAML application and a new OpenID Connect one.

ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Works with
JavaScript / TypeScriptNext.jsDocker Compose
Stack
A sample SAML application, a Next.js wiki, an LDAP directory in a container

Scenario​

A company keeps its people in a directory. An old ERP speaks SAML, and a new wiki speaks OpenID Connect. An employee signs in once and opens both. A leaver in the HR system loses both on the same day. The security team rotates the signing key with no downtime.

People and agents​

WhoRole in the applicationIdentity in LumoAuth
EmployeeUses both applications.A user whose password is checked against the directory.
IT administratorManages applications and keys.An administrator of the organization.

Flows​

FlowWhat happensWhat LumoAuth does
Directory sign-inAn employee types the directory password.Checks it against LDAP over TLS, then asks for a second factor.
SAMLThe employee opens the ERP.Sends a signed assertion with mapped attributes. Both directions of start work.
OpenID ConnectThe employee opens the wiki.No second sign-in: the session exists.
Single logoutThe employee signs out of the wiki.Ends the session, and tells the ERP.
RotationThe administrator rotates the signing key.Publishes both keys until old tokens expired.
LeaverHR marks a person as left.Deactivates the user here and in the downstream applications.

Parts​

PartBuilt withJob
ERPA sample SAML service provider in a containerShows the assertion that it received.
WikiNext.js, @lumoauth/nextjsA normal OpenID Connect application.
DirectoryOpenLDAP in a containerThree sample employees.

What the seed script creates​

  • An LDAP connection.
  • A SAML application and an OpenID Connect application.
  • An MFA policy.
  • An outbound SCIM target that logs requests.

Walkthrough​

  1. Sign in with a directory account.
  2. Open both applications.
  3. Sign out once.
  4. Rotate the key, and sign in again.

Before you run it​

  • LumoAuth must reach the directory on a public address.
  • Check that your plan includes LDAP, outbound SCIM and HRIS sync in the plans matrix.