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/app/Services/Domain/Auth/" - "backend/app/Services/Application/Handlers/Auth/" - "backend/app/Http/Actions/Auth/" - "backend/config/sso.php" - "frontend/src/components/routes/sso/" - "frontend/src/components/common/SsoButtons/**"
Single sign-on (OIDC)
- One generic OIDC client (
Services/Domain/Auth/Sso) serves Google, Microsoft and the operator'sSSO_OIDC_*provider; no Socialite. Providers exist, and their buttons show, only when their client id and secret are set; there is no separate visibility switch. - Identities are keyed by (
issuer,subject) inuser_identities; Microsoft uses thetid-substituted issuer andoid, neversub,emailorupn. Never write the provider email back tousers.email. - An email links an existing user only when the provider's email is trusted (
SsoIdentityClaimsMapper) AND the user was verified in SaaS mode or password sign-in is disabled. Superadmins, untrusted emails and ambiguous matches getSSO_LINK_REQUIRES_LOGINbefore any membership check, so responses can't reveal account state; never create a signup ticket for an email that already has a user. The first link by email while password sign-in is off clears the old password, trusted devices and sessions. - Every step after
startis bound to the browser: the state, the 2FA challenge, the account-choice ticket and the signup ticket all carry the binding hash (SsoTicketService, one cache entry perSsoTicketType). Keep that when adding a step. - All logins go through
LoginService::beginLogin/completeLoginwith anAuthContext; local 2FA always applies. A pending identity is only attached incompleteLogin, after 2FA and account choice, just before the token is issued. - Sensitive self-service (link, unlink, email change, 2FA setup/disable) confirms identity with
IdentityConfirmationService: the password, or for password-less users areauth_proofbound to the user and JWTjti. Refuse while impersonating. A missingauth_timeon reauth is accepted because Microsoft omits it; freshness then relies onprompt=loginandmax_age=0. users.tokens_valid_afterrevokes older JWTs (EnsureTokenNotRevoked): authenticated routes get 401SESSION_REVOKED, public routes treat the request as anonymous, and impersonation tokens also die with the impersonator's sessions. Refresh keeps the originaliat, so reissue withissueFreshTokenForCurrentSessionwhen the current session must survive a revocation.SSO_PASSWORD_LOGIN_DISABLEDis enforced server-side throughPasswordLoginPolicy(login, register, forgot/reset, invitation); superadmins keep password sign-in as break-glass.- Invitations never overwrite an existing user's credentials: users with an active membership and a password or identity must sign in and
POST /auth/invitation/{token}/join. A new invitee accepting with SSO needs a provider email equal to the invited email. - Per-account enterprise connections are licensed ee code: see
.claude/rules/ee/enterprise-sso.md.