Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
paths: - "backend/ee/Sso/" - "frontend/src/ee/sso/" - "e2e/tests/auth/enterprise-sso.spec.ts"
Enterprise single sign-on
- Only per-account connections are ee (
backend/ee/Sso,frontend/src/ee/sso); social login and the operator'sSSO_OIDC_*provider stay in core (.claude/rules/backend/sso.md). Core calls into ee directly (LoginService,EnsureTokenNotRevoked,CreateAccountHandler,SsoProviderRegistry). - An account's connection is a provider with key
connection-{id}resolved bySsoProviderRegistry::get, so the phase 1 start/exchange flow serves it; it only accepts the LOGIN, LINK, REAUTH and TEST intents, and inactive connections only TEST. - A connection binds tokens to itself through
audplustid(Entra) orhd(Workspace). Its emails are trusted only when the provider marks them verified (email_verified, Entraxms_edov) AND the domain is verified and not suspended for that account. Never trust them through the phase 1 resolver; connection logins go throughEnterpriseSsoResolver. - A connection never email-links an account owner or a superadmin, and its identities can't confirm identity (REAUTH) for users who belong to other accounts: otherwise an admin who re-points the connection at their own provider could take over other users. A superadmin never links, signs in or confirms identity through a connection, even with an identity on it (
SsoConnectionLinkService::isSuperAdmin): a tenant's identity provider must never authenticate platform staff.SSO_LINK_REQUIRES_LOGINcarriescontext.email(so the callback says to connect it in Security settings) only when the email is trusted and the single matching user could link this connection; otherwise the context is empty and the message says to use the password. - Members link a connection themselves from Security settings (LINK, after
IdentityConfirmationService), the owner included, so the owner can sign in through it without the break-glass email.SsoConnectionLinkService::assertCanLinkrequires an ACTIVE membership of the connection's account and refuses superadmins, at start and again at exchange (SSO_PROVIDER_NOT_CONFIGUREDotherwise); linking never grants membership or changes a role.GET /users/me/sso-identitieslists the linkable connections inmeta.linkable_connections(none for a superadmin). - Every outbound request to a provider goes through
SsrfGuard(https, public addresses only, pinned withCURLOPT_RESOLVE) unlessSSO_ALLOW_PRIVATE_ISSUERSis set; never set it on multi-tenant installs. - Domain status is derived from
verified_atandfailing_since(suspended seven days after the daily check starts failing); one account per verified domain, conflicts are resolved withsso:verify-domain. - Enforcement is
account_sso_connections.enforce_ssoplus theaccount_users.sso_enforcedsnapshot (set at enable and when someone joins, cleared only by an admin's exempt toggle). It's checked inLoginService::beginLogin(members only, before a 2FA challenge is issued),LoginService::completeLoginandEnsureTokenNotRevoked; tokens must carry the account'ssso_connection_id, and a token issued through a connection dies when that connection is turned off or deleted.usersWhoCannotUseConnectionis the one answer to who the connection can't sign in: every superadmin, and an owner of any account without an identity on it (for Workspace, a shared Google identity counts only when its email is on the hosted domain). Those members still get the snapshot but are not enforced: enabling or requiring them doesn't revoke their sessions or API keys, they keep their password until they link it, the preview reportssso_available: falseand the Team page showsPASSWORD. A verified domain can't be removed while enforcing. The owner is never enforced: their password sign-in always asks for 2FA, emails every admin (the owner gets their own copy), and neither they nor support can turn their 2FA off while enforcing. - Forgot-password silently sends nothing when
isPasswordResetAllowedis false;/users/meexposes the same answer aspassword_reset_allowedso Security settings doesn't offer a password link that never arrives. - Domain capture: while a connection enforces, nobody can sign up with an email on its usable domains.
SsoEnforcementService::assertSignupAllowedthrowsSsoRequiredExceptionfromCreateAccountHandler(password and social signup) and before a social signup ticket is issued; the frontend sends them to SSO discovery. Invitations to other accounts are not captured. - Tokens issued through a connection use its session length and can't be refreshed (
SSO_SESSION_EXPIRED); the frontend re-authenticates withprompt=none. - Configuration endpoints need
Permission::MANAGE_ACCOUNT. Setup (create, edit, check, test, add or verify a domain) takesee.licensed:enterprise_ssoplusFeatureFlag::ENTERPRISE_SSO; turning the connection, enforcement or a member on checks the flag in the action. Reads, deletes and switching things off stay ungated so a lapsed licence can wind down, and sign-in through an existing connection is never gated. Any connection, on or off, counts as in use forLicensedFeatureUsageService, so it stays visible and removable until deleted. Owners are emailed when someone else changes the provider or enforcement.