wip: totp for local users

This commit is contained in:
jnfrati
2026-04-06 11:48:25 +02:00
parent 28fbf96b2a
commit 6d251c7c2a
10 changed files with 735 additions and 114 deletions

View File

@@ -135,6 +135,7 @@ type ManagementConfig struct {
type AuthConfig struct {
Issuer string `yaml:"issuer"`
LocalAuthDisabled bool `yaml:"localAuthDisabled"`
EnableLocalMFA bool `yaml:"enableLocalMFA"`
SignKeyRefreshEnabled bool `yaml:"signKeyRefreshEnabled"`
Storage AuthStorageConfig `yaml:"storage"`
DashboardRedirectURIs []string `yaml:"dashboardRedirectURIs"`
@@ -580,6 +581,7 @@ func (c *CombinedConfig) buildEmbeddedIdPConfig(mgmt ManagementConfig) (*idp.Emb
cfg := &idp.EmbeddedIdPConfig{
Enabled: true,
EnableMFA: mgmt.Auth.EnableLocalMFA,
Issuer: mgmt.Auth.Issuer,
LocalAuthDisabled: mgmt.Auth.LocalAuthDisabled,
SignKeyRefreshEnabled: mgmt.Auth.SignKeyRefreshEnabled,