mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-06 05:29:07 +02:00
fix providers not getting populated
This commit is contained in:
@@ -286,6 +286,7 @@ func ensureStaticClients(ctx context.Context, stor storage.Storage, clients []st
|
|||||||
old.Name = client.Name
|
old.Name = client.Name
|
||||||
old.Public = client.Public
|
old.Public = client.Public
|
||||||
old.PostLogoutRedirectURIs = client.PostLogoutRedirectURIs
|
old.PostLogoutRedirectURIs = client.PostLogoutRedirectURIs
|
||||||
|
old.MFAChain = client.MFAChain
|
||||||
return old, nil
|
return old, nil
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return fmt.Errorf("failed to update client %s: %w", client.ID, err)
|
return fmt.Errorf("failed to update client %s: %w", client.ID, err)
|
||||||
|
|||||||
@@ -203,6 +203,10 @@ func (c *EmbeddedIdPConfig) ToYAMLConfig() (*dex.YAMLConfig, error) {
|
|||||||
}
|
}
|
||||||
// Absolutely required, otherwsise the dex server will omit the MFA configuration entirely
|
// Absolutely required, otherwsise the dex server will omit the MFA configuration entirely
|
||||||
os.Setenv("DEX_SESSIONS_ENABLED", "true")
|
os.Setenv("DEX_SESSIONS_ENABLED", "true")
|
||||||
|
|
||||||
|
for i := range cfg.StaticClients {
|
||||||
|
cfg.StaticClients[i].MFAChain = []string{"default-totp"}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add owner user if provided
|
// Add owner user if provided
|
||||||
|
|||||||
Reference in New Issue
Block a user