OIDC-only sign-in, Vereinfacht connection test, locale defaults, and settings/docs cleanup #445
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
UX research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#445
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/settings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OIDC-only sign-in, Vereinfacht connection test, locale defaults, and settings/docs cleanup
Description of the implemented changes
The changes were:
Add an “OIDC-only” sign-in option (ENV + DB) so the login page can show only the Single Sign-On button when OIDC is fully configured; add a Vereinfacht connection test button in global settings; harden OIDC when not configured (no defaults in dev, MissingSecret instead of crashes); set default locale to German in dev/prod and English in test; document OIDC_ONLY and add German translations.
What has been changed?
oidc_onlyon the settings table.oidc_only(boolean, default false) inMv.Membership.Setting, included in OIDC-related attribute lists.oidc_configured?/0(true only when client_id, base_url, redirect_uri and client_secret are set);oidc_only?/0(ENVOIDC_ONLYfirst, then Settings);oidc_only_env_set?/0and helpers for ENV-vs-settings booleans.{:error, MissingSecret}when a value is nil/blank instead of{:ok, nil}to avoid crashes (e.g.URI.new(nil)).OIDC_ONLYor when OIDC is not fully configured; merge of OIDC ENV values into the form (read-only when set via ENV), includingoidc_onlywhenOIDC_ONLYis set.SignInLive(routerlive_viewoverride) withdata-oidc-configuredanddata-oidc-only; CSS to hide SSO when OIDC not configured and to hide password form when OIDC-only; auth overrides for translatable “or” divider (German “oder”).config :mv, :default_locale, "en";LiveUserAuthand routerfallback_locale/1use config; LocaleController validates supported locales only.config/dev.exscommented out so SSO is hidden when OIDC is not configured.docs/admin-bootstrap-and-oidc-role-sync.md;.env.exampleupdated with commentedOIDC_ONLYand short description.Definition of Done
Code Quality
just ci-dev)Accessibility
Testing
just ci-dev)Additional Notes
oidc_only:mix ecto.migrate.OIDC_ONLYset, behaviour unchanged.config :mv, :default_locale, "en".WIP: OIDC-only sign-in, Vereinfacht connection test, locale defaults, and settings/docs cleanupto OIDC-only sign-in, Vereinfacht connection test, locale defaults, and settings/docs cleanup