Skip to content
Snippets Groups Projects
Commit c2e83494 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

#41 passwordless login extention functions

parent c0f938af
No related branches found
No related tags found
1 merge request!35Extension functions for GetLoginProofInvitation and GetLoginProofResult"
Pipeline #52827 passed with stages
in 2 minutes and 19 seconds
......@@ -84,7 +84,7 @@ func main() {
cacheFuncs := regofunc.NewCacheFuncs(cfg.Cache.Addr, httpClient)
didResolverFuncs := regofunc.NewDIDResolverFuncs(cfg.DIDResolver.Addr, httpClient)
taskFuncs := regofunc.NewTaskFuncs(cfg.Task.Addr, httpClient)
ocmFuncs := regofunc.NewOcmFuncs(cfg.Ocm.Addr, httpClient)
ocmFuncs := regofunc.NewOcmFuncs(cfg.OCM.Addr, httpClient)
signerFuncs := regofunc.NewSignerFuncs(cfg.Signer.Addr, httpClient)
regofunc.Register("cacheGet", rego.Function3(cacheFuncs.CacheGetFunc()))
regofunc.Register("cacheSet", rego.Function4(cacheFuncs.CacheSetFunc()))
......
......@@ -10,7 +10,7 @@ type Config struct {
Signer signerConfig
DIDResolver didResolverConfig
Metrics metricsConfig
Ocm ocmConfig
OCM ocmConfig
LogLevel string `envconfig:"LOG_LEVEL" default:"INFO"`
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment