1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-30 22:33:49 +02:00

Auth load rules (#1397)

* WithRoles variadic args

* Load Rules

* Timer => Ticker

Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
ben-toogood
2020-03-24 13:48:37 +00:00
committed by GitHub
parent 86272a3064
commit fd664f4392
8 changed files with 312 additions and 729 deletions

View File

@ -71,7 +71,6 @@ import (
// auth
svcAuth "github.com/micro/go-micro/v2/auth/service"
storeAuth "github.com/micro/go-micro/v2/auth/store"
// auth providers
"github.com/micro/go-micro/v2/auth/provider/basic"
@ -360,7 +359,6 @@ var (
DefaultAuths = map[string]func(...auth.Option) auth.Auth{
"service": svcAuth.NewAuth,
"store": storeAuth.NewAuth,
}
DefaultAuthProviders = map[string]func(...provider.Option) provider.Provider{