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.
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
| Who | Role in the application | Identity in LumoAuth |
|---|---|---|
| Employee | Uses both applications. | A user whose password is checked against the directory. |
| IT administrator | Manages applications and keys. | An administrator of the organization. |
Flows
| Flow | What happens | What LumoAuth does |
|---|---|---|
| Directory sign-in | An employee types the directory password. | Checks it against LDAP over TLS, then asks for a second factor. |
| SAML | The employee opens the ERP. | Sends a signed assertion with mapped attributes. Both directions of start work. |
| OpenID Connect | The employee opens the wiki. | No second sign-in: the session exists. |
| Single logout | The employee signs out of the wiki. | Ends the session, and tells the ERP. |
| Rotation | The administrator rotates the signing key. | Publishes both keys until old tokens expired. |
| Leaver | HR marks a person as left. | Deactivates the user here and in the downstream applications. |
Parts
| Part | Built with | Job |
|---|---|---|
| ERP | A sample SAML service provider in a container | Shows the assertion that it received. |
| Wiki | Next.js, @lumoauth/nextjs | A normal OpenID Connect application. |
| Directory | OpenLDAP in a container | Three 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
- Sign in with a directory account.
- Open both applications.
- Sign out once.
- 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.