feat: sign up and sign in with platform identity providers
ci / build (pull_request) Successful in 5m13s
ci / lint (pull_request) Successful in 5m45s
ci / image (pull_request) Successful in 6m20s
ci / test (pull_request) Successful in 11m46s

Platform admins register identity providers for the whole installation:
any OpenID Connect provider, checked by discovery, and GitHub or GitHub
Enterprise through OAuth, which reads the primary email GitHub verified.
Sign-in pages offer them; the sign-up page offers those open to sign-up,
also where email sign-up is closed for lack of a mail server.

Accounts are reached only through identities stored by subject. A new
identity signs up only with an email the provider confirmed, within the
per-address limit and sign-up mode, and never takes over an existing
account, including through an alias of its address: its owner links
the provider in the security settings. The account's TOTP still applies
after the provider. Unlinking refuses to remove the last way to sign in,
and removing a provider refuses while accounts depend on it.

The test browser takes the CSRF token from pages, as the console does.

Closes #114

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-23 01:26:14 +01:00
1 parent 1ad68e2e87
commit fe5c4fb24c
26 files changed
+2710 -351

No files matched your search

+29
View File
@@ -52,6 +52,8 @@
"app.network_error": "Connection failed.",
"audit.action.account.delete": "Account deleted",
"audit.action.account.export": "Personal data exported",
"audit.action.account.identity_link": "Sign-in provider connected",
"audit.action.account.identity_unlink": "Sign-in provider disconnected",
"audit.action.account.recovery_codes": "Recovery codes regenerated",
"audit.action.account.signup": "Account created",
"audit.action.account.totp_disable": "Two-factor authentication disabled",
@@ -98,6 +100,9 @@
"audit.action.platform.agent_delete": "Platform agent revoked",
"audit.action.platform.check_types_update": "Check types changed",
"audit.action.platform.checker_network_update": "Checker network changed",
"audit.action.platform.idp_create": "Sign-in provider added",
"audit.action.platform.idp_delete": "Sign-in provider removed",
"audit.action.platform.idp_update": "Sign-in provider changed",
"audit.action.platform.legal_update": "Platform legal document changed",
"audit.action.platform.limits_update": "Default limits changed",
"audit.action.platform.org_delete": "Organization deleted by admin",
@@ -149,11 +154,14 @@
"auth.login.title": "Sign in",
"auth.login.to_signup": "Sign up",
"auth.login.totp_hint": "Enter the code from your authenticator app or one of your recovery codes.",
"auth.or": "or",
"auth.signup.submit": "Create",
"auth.signup.title": "Create account",
"auth.signup.to_login": "Back to sign in",
"auth.sso.continue_with": "Continue with {{.Name}}",
"auth.sso.heading": "Single sign-on",
"auth.sso.org_placeholder": "Organization short name",
"auth.sso.signup_with": "Sign up with {{.Name}}",
"auth.sso.submit": "Continue",
"auth.verify.intro": "Press the button to confirm your email address and sign in.",
"auth.verify.resend_intro": "If an unconfirmed account uses this address, we send it a new link.",
@@ -498,6 +506,7 @@
"error.forbidden": "You are not allowed to do this.",
"error.group_cycle": "A group cannot be placed inside itself or one of its subgroups.",
"error.group_too_deep": "Groups can be nested at most eight levels deep.",
"error.idp_in_use": "{{.Count}} accounts sign in only through this provider. Disable it instead.",
"error.internal": "Internal error.",
"error.invalid_alert_group": "An alert group does not exist in this organization.",
"error.invalid_assertion_op": "Unknown condition operator.",
@@ -544,6 +553,7 @@
"error.invitation_email_mismatch": "This invitation was sent to a different email address than the one you are signed in with.",
"error.invitation_invalid": "This invitation is invalid, expired or was already used.",
"error.keyword_needs_get": "Keyword checks need GET requests.",
"error.last_sign_in": "This is the account's only way to sign in. Set a password or connect another provider first.",
"error.locked": "The resource is locked by another process.",
"error.maintenance_overlaps": "The maintenance would last longer than the time until it repeats.",
"error.maintenance_without_targets": "Choose at least one monitor or group.",
@@ -576,6 +586,7 @@
"error.slug_taken": "This short name is already taken.",
"error.sso_denied": "Sign-in was cancelled at the identity provider.",
"error.sso_discovery_failed": "The identity provider could not be reached or returned no valid configuration.",
"error.sso_email_unverified": "The provider did not confirm an email address for this account, so it cannot sign up here.",
"error.sso_expired": "The sign-in attempt expired, please start again.",
"error.sso_forbidden_address": "The issuer points to a non-public address.",
"error.sso_identity_taken": "This SSO sign-in is already linked to another account.",
@@ -751,6 +762,20 @@
"groups.none": "– top level –",
"groups.parent": "Inside group",
"groups.title": "Monitor groups",
"idp.add": "Add provider",
"idp.allow_signup": "New people may sign up with it",
"idp.callback": "Callback URL to register at the provider:",
"idp.client_id": "Client ID",
"idp.client_secret": "Client secret",
"idp.delete_confirm": "Remove {{.Name}}? Accounts lose this way to sign in.",
"idp.enabled": "Enabled",
"idp.intro": "People can sign up and sign in with these accounts. An existing account with the same email is never taken over: its owner connects the provider in the security settings.",
"idp.issuer": "Issuer or server",
"idp.issuer_hint": "For OpenID Connect the issuer, e.g. https://accounts.google.com or https://login.microsoftonline.com/<tenant>/v2.0. For GitHub leave it empty, or give your GitHub Enterprise server.",
"idp.kind": "Kind",
"idp.kind_oidc": "OpenID Connect (Google, Microsoft, GitLab, Keycloak, …)",
"idp.signup_open": "sign-up open",
"idp.title": "Sign-in providers",
"incidents.all": "All incidents",
"incidents.all_of_monitor": "All incidents of this monitor",
"incidents.none": "No incidents so far.",
@@ -1184,6 +1209,10 @@
"scope.status_page": "status page",
"security.activity": "Account activity",
"security.activity_intro": "Recent sign-ins and security changes on your account. Contact an administrator if you do not recognize an entry.",
"security.platform_sso.heading": "Sign in with other accounts",
"security.platform_sso.link": "Connect {{.Name}}",
"security.platform_sso.unlink": "Disconnect",
"security.platform_sso.unlink_confirm": "Stop signing in with {{.Name}}?",
"security.recovery.left": {
"one": "{{.Count}} recovery code left",
"other": "{{.Count}} recovery codes left"