feat(auth): add user access filtering rules

This commit is contained in:
2020-08-09 11:59:03 +02:00
parent a30d6b76d3
commit f55bce9ee2
8 changed files with 174 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/wader/gormstore"
"forge.cadoles.com/Cadoles/guesstimate/internal/auth"
"forge.cadoles.com/Cadoles/guesstimate/internal/orm"
"gitlab.com/wpetit/goweb/logger"
@ -96,5 +97,7 @@ func getServiceContainer(ctx context.Context, conf *config.Config) (*service.Con
oidc.WithScopes("email", "openid"),
))
ctn.Provide(auth.ServiceName, auth.ServiceProvider(conf.Auth.Rules))
return ctn, nil
}