diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2025-03-09 01:53:44 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-09 01:53:44 +1100 |
| commit | 9241731a4dd5592b4a02b5352c903b4d06b6f4ab (patch) | |
| tree | 5184b98751912a261ff70fd8721b9cd4f1c98f1e /internal/commands/helpers.go | |
| parent | bbcb38ab9ff35e69d5d52a71ab56346749f5e8b1 (diff) | |
feat(embed): make authelia embedable (#8841)
This adds a highly experimental option for developers looking to embed Authelia within another go binary.
Closes #5803
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/commands/helpers.go')
| -rw-r--r-- | internal/commands/helpers.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/commands/helpers.go b/internal/commands/helpers.go index 84ff9074c..af889af1c 100644 --- a/internal/commands/helpers.go +++ b/internal/commands/helpers.go @@ -13,16 +13,7 @@ import ( ) func getStorageProvider(ctx *CmdCtx) (provider storage.Provider) { - switch { - case ctx.config.Storage.PostgreSQL != nil: - return storage.NewPostgreSQLProvider(ctx.config, ctx.trusted) - case ctx.config.Storage.MySQL != nil: - return storage.NewMySQLProvider(ctx.config, ctx.trusted) - case ctx.config.Storage.Local != nil: - return storage.NewSQLiteProvider(ctx.config) - default: - return nil - } + return storage.NewProvider(ctx.config, ctx.trusted) } func containsIdentifier(identifier model.UserOpaqueIdentifier, identifiers []model.UserOpaqueIdentifier) bool { |
