Skip to main content

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.
Works with
JavaScript / TypeScriptNext.jsExpressDocker Compose
Stack
Next.js app, Express API, a sample SAML identity provider

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​

WhoRole in the applicationIdentity in LumoAuth
Customer administratorManages members of one customer.A member with the administrator role in a customer organization.
MemberUses the product.A user who belongs to one or more customer organizations.
Customer ITConnects SSO and SCIM.Uses the settings that Coretable's staff prepare.
Coretable APIServes the data of each customer.A resource that checks the organization and the role of each request.

Flows​

FlowWhat happensWhat LumoAuth does
Sign-upA company signs up.The API creates a customer organization and invites the first administrator.
SSOA person from acme.test types their email.The sign-in page sends them to Acme's identity provider.
ProvisioningAcme's identity provider adds a person and a group.SCIM creates the user. The group maps to a role.
RolesA member opens a project.The API checks the role inside that customer organization.
Self-serviceAn administrator invites a colleague.The customer admin portal sends the invitation.
OffboardingAcme removes a person.SCIM deactivates the user, and the session ends at once.

Parts​

PartBuilt withJob
AppNext.js, @lumoauth/nextjsProjects, the organization switcher, settings.
APIExpress, @lumoauth/express and @lumoauth/backendData for each customer, permission checks, webhook receiver.
Sample identity providerA containerPlays 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.* and user.*.
  • Branding for the application.

Walkthrough​

  1. Sign in as a member of the studio, with a password.
  2. Sign in as a person of Acme, through the sample identity provider.
  3. Push a user and a group with SCIM.
  4. Invite a colleague from the customer admin portal.
  5. 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.