Compare commits
1 commit
75a6b87671
...
9a5c3c4b08
Author | SHA1 | Date | |
---|---|---|---|
9a5c3c4b08 |
2 changed files with 14 additions and 7 deletions
|
@ -40,12 +40,19 @@ const (
|
|||
ModeNet
|
||||
)
|
||||
|
||||
type BackendConfigType string
|
||||
|
||||
const (
|
||||
Memory BackendConfigType = "memory"
|
||||
SQLite BackendConfigType = "sqlite"
|
||||
)
|
||||
|
||||
type BackendConfig struct {
|
||||
Config *oidc.Config `json:"config"`
|
||||
Name string `json:"name"`
|
||||
ID string `json:"ID"`
|
||||
Type string `json:"type"`
|
||||
Local bool `json:"local"`
|
||||
Config *oidc.Config `json:"config"`
|
||||
Name string `json:"name"`
|
||||
ID string `json:"ID"`
|
||||
Type BackendConfigType `json:"type"`
|
||||
Local bool `json:"local"`
|
||||
}
|
||||
|
||||
type OpenConnectConfig struct {
|
||||
|
|
|
@ -61,7 +61,7 @@ func main() {
|
|||
|
||||
storageType, err := initStorage(conf)
|
||||
if err != nil {
|
||||
logger.L.Errorf("Failed to initialize storage backend: %s", err.Error())
|
||||
logger.L.Fatalf("Failed to initialize storage backend: %s", err.Error())
|
||||
}
|
||||
logger.L.Infof("Initialized storage backend \"%s\"", conf.StorageType)
|
||||
dexConf := dex_server.Config{
|
||||
|
@ -99,7 +99,7 @@ func main() {
|
|||
if err := dexConf.Storage.CreateConnector(storage.Connector{
|
||||
ID: backend.ID,
|
||||
Name: backend.Name,
|
||||
Type: backend.Type,
|
||||
Type: string(backend.Type),
|
||||
Config: backendConfJson,
|
||||
}); err != nil {
|
||||
logger.L.Errorf("Failed to add connector for backend %q to stage: %s", backend.Name, err.Error())
|
||||
|
|
Loading…
Add table
Reference in a new issue