Coretable
A project tool for business customers: each customer is an organization, signs in through its own identity provider, and provisions its people with SCIM.
ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Scenario
Coretable sells to companies. "Acme" signs in through its own identity provider with SAML and provisions people with SCIM. "Globex" uses OpenID Connect. A five-person studio uses email and password. Each customer has its own members and roles, and its administrators invite colleagues without a support ticket.
People and agents
| Who | Role in the application | Identity in LumoAuth |
|---|---|---|
| Customer administrator | Manages members of one customer. | A member with the administrator role in a customer organization. |
| Member | Uses the product. | A user who belongs to one or more customer organizations. |
| Customer IT | Connects SSO and SCIM. | Uses the settings that Coretable's staff prepare. |
| Coretable API | Serves the data of each customer. | A resource that checks the organization and the role of each request. |
Flows
| Flow | What happens | What LumoAuth does |
|---|---|---|
| Sign-up | A company signs up. | The API creates a customer organization and invites the first administrator. |
| SSO | A person from acme.test types their email. | The sign-in page sends them to Acme's identity provider. |
| Provisioning | Acme's identity provider adds a person and a group. | SCIM creates the user. The group maps to a role. |
| Roles | A member opens a project. | The API checks the role inside that customer organization. |
| Self-service | An administrator invites a colleague. | The customer admin portal sends the invitation. |
| Offboarding | Acme removes a person. | SCIM deactivates the user, and the session ends at once. |
Parts
| Part | Built with | Job |
|---|---|---|
| App | Next.js, @lumoauth/nextjs | Projects, the organization switcher, settings. |
| API | Express, @lumoauth/express and @lumoauth/backend | Data for each customer, permission checks, webhook receiver. |
| Sample identity provider | A container | Plays Acme's SAML provider for local runs. |
What the seed script creates
- Three customer organizations.
- Roles: administrator, editor, viewer.
- A SAML connection and a domain route for acme.test.
- A SCIM client.
- A webhook for
organization.*anduser.*. - Branding for the application.
Walkthrough
- Sign in as a member of the studio, with a password.
- Sign in as a person of Acme, through the sample identity provider.
- Push a user and a group with SCIM.
- Invite a colleague from the customer admin portal.
- Deactivate the user, and watch the session end.
Before you run it
- A customer organization has no SSO connection or SCIM endpoint of its own. Connections belong to your organization and route by email domain.
- Check that your plan includes customer self-service in the plans matrix.