Compare commits
1 commit
8e2b9b859a
...
bfd4fbe75b
Author | SHA1 | Date | |
---|---|---|---|
bfd4fbe75b |
1 changed files with 3 additions and 3 deletions
|
@ -70,13 +70,13 @@ func main() {
|
||||||
Type: "refuseAll",
|
Type: "refuseAll",
|
||||||
Config: nil,
|
Config: nil,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
logger.L.Errorf("Failed to add connector for backend RefuseAll to stage: %s", err.Error())
|
logger.L.Errorf("Failed to add connector for backend RefuseAll to stage: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, backend := range conf.OpenConnectConfig.BackendConfigs {
|
for _, backend := range conf.OpenConnectConfig.BackendConfigs {
|
||||||
backendConfJson, err := json.Marshal(backend.Config)
|
backendConfJson, err := json.Marshal(backend.Config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.L.Errorf("Failed to serialize oidc config for backend %q: %s", backend.Name, err.Error())
|
logger.L.Errorf("Failed to serialize oidc config for backend %q: %s", backend.Name, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := dexConf.Storage.CreateConnector(storage.Connector{
|
if err := dexConf.Storage.CreateConnector(storage.Connector{
|
||||||
|
@ -85,7 +85,7 @@ func main() {
|
||||||
Type: backend.Type,
|
Type: backend.Type,
|
||||||
Config: backendConfJson,
|
Config: backendConfJson,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
logger.L.Errorf("Failed to add connector for backend %q to stage: %s", backend.Name, err.Error())
|
logger.L.Errorf("Failed to add connector for backend %q to stage: %s", backend.Name, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue