Skip to content

feat(auth): add single sign-on with OpenID Connect - #25

Merged
somaraj merged 1 commit into
developfrom
feature/oidc-sso
Nov 12, 2026
Merged

somaraj merged 1 commit into
developfrom
feature/oidc-sso

Conversation

@somaraj

@somaraj somaraj commented Nov 12, 2026

Copy link
Copy Markdown
Member

Closes #11.

Adds optional single sign-on with any OpenID Connect provider (Keycloak, Authentik, Entra ID, Google, Okta…). Off by default; configured via Authentication:Oidc / SSO_* in Docker. Setup guide: docs/sso.md.

  • Code flow with PKCE; provider tokens are not stored; client secret from config/env only.
  • Existing users linked by verified e-mail; a user can't be linked to a second identity at the same provider.
  • Optional auto-provisioning (Registered role only) and add-only group → role mapping.
  • SSO-only mode; system administrators keep password sign-in at /Login?local=1.
  • Linked sign-ins in My profile → Security and on the admin user page.

Upgrade: one additive migration (AddUserExternalLogin, new table) and new translations; the Docker migrate container applies both. Manual installs: run migrations (or 01_schema.sql) and 03_locale.sql.

Tests: unit tests for settings validation, claim reading, the sign-in rules, role mapping and error codes, plus an end-to-end run against a local OIDC test provider (code + PKCE + RS256).

Optional OIDC sign-in (Authentication:Oidc, off by default) using the
authorization code flow with PKCE. Existing users are linked by
verified e-mail; accounts can optionally be created on first sign-in
(Registered role only); provider groups can add roles (add-only).
SSO-only mode keeps password sign-in for system administrators at
/Login?local=1. Linked sign-ins are listed in My profile and on the
admin user page.

Adds the UserExternalLogin table (migration AddUserExternalLogin),
locale keys, docs/sso.md and Docker SSO_* settings.

Closes #11
@sonarqubecloud

Copy link
Copy Markdown

@somaraj
somaraj merged commit 0dbe48a into develop Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Single sign-on with OpenID Connect

1 participant