MCPcopy Create free account
hub / github.com/zitadel/oidc / getUserStore

Function getUserStore

example/server/main.go:14–19  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

12)
13
14func getUserStore(cfg *config.Config) (storage.UserStore, error) {
15 if cfg.UsersFile == "" {
16 return storage.NewUserStore(fmt.Sprintf("http://localhost:%s/", cfg.Port)), nil
17 }
18 return storage.StoreFromFile(cfg.UsersFile)
19}
20
21func main() {
22 cfg := config.FromEnvVars(&config.Config{Port: "9998"})

Callers 1

mainFunction · 0.85

Calls 2

NewUserStoreFunction · 0.92
StoreFromFileFunction · 0.92

Tested by

no test coverage detected