Lennox LaboratoryInternal portal

Before Okta

Setup


This page is public. It shows which settings are present and the exact values to paste into Okta. Secret values stay hidden.

Resolved base URL: https://lab.lennox-labs.com from APP_BASE_URL. Sign-in redirects, the SAML audience, and the SCIM base URL are built from it. The production portal is https://lab.lennox-labs.com.

Readiness

  • MissingDATABASE_URLMissing. Connect Neon from the Vercel Storage tab.
  • ReadySESSION_SECRETSet. The value is hidden.
  • ReadySCIM_BEARER_TOKENSet. The token is hidden. Okta sends it as Authorization: Bearer.
  • ReadyAPP_BASE_URLSet to https://lab.lennox-labs.com.
  • MissingOIDC issuer, client ID, client secretOIDC_ISSUER missing. OIDC_CLIENT_ID missing. OIDC_CLIENT_SECRET missing. Scopes openid profile email. Groups claim groups.
  • MissingSAML identity providerMissing. Set SAML_IDP_METADATA_URL, or both SAML_IDP_ENTRY_POINT and SAML_IDP_CERT.
  • ReadyAdmin groupADMIN_GROUP is Lab Admins (default).
  • ReadyEngineering groupENGINEERING_GROUP is Engineering (default).

Production paste sheet

Primary values for https://lab.lennox-labs.com. Use these in the Okta apps for the public portal.

OpenID Connect

Sign-in redirect URI
https://lab.lennox-labs.com/api/auth/oidc/callback

Okta calls this the sign-in redirect URI.

Sign-out redirect URI
https://lab.lennox-labs.com/signed-out

Okta calls this the sign-out redirect URI. The lab sends it as post_logout_redirect_uri.

Initiate login URL
https://lab.lennox-labs.com/api/auth/oidc/login

Optional. Where a person starts sign-in on this portal.

Grant type
Authorization Code

Confidential client. The lab also sends a PKCE S256 code challenge.

Scopes
openid profile email

Put the groups claim in the ID token. A separate groups scope is not required.

Groups claim name
groups

Include this claim in the ID token. Filter: Matches regex .*

SAML 2.0

Single sign-on URL
https://lab.lennox-labs.com/api/auth/saml/acs

HTTP-POST binding. Use this same URL for the recipient and destination if Okta asks.

Audience URI (SP Entity ID)
https://lab.lennox-labs.com/api/auth/saml/metadata
SP metadata URL
https://lab.lennox-labs.com/api/auth/saml/metadata

Reference XML for the entity ID and assertion consumer service. Okta's SAML form usually wants the two fields above pasted by hand.

Name ID format
EmailAddress

In Okta's list this is EmailAddress. The URI is urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress.

Group attribute name
groups

Group attribute statement. Filter: Matches regex .*

Attribute statements

NameValue
emailuser.email
firstNameuser.firstName
lastNameuser.lastName

Group attribute statement name is groups. Filter: Matches regex .*

SCIM provisioning

SCIM connector base URL
https://lab.lennox-labs.com/scim/v2
Unique identifier field for users
userName
Authentication mode
HTTP Header

Authorization value: Bearer, a space, then the SCIM_BEARER_TOKEN from Vercel. The token is not shown on this page.

Supported actions
Push new users, push profile updates, push groups, deactivate users