github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/util/auth/auth.go (about) 1 package auth 2 3 import ( 4 "github.com/tickoalcantara12/micro/v3/service/auth" 5 ) 6 7 const ( 8 // BearerScheme used for Authorization header 9 BearerScheme = "Bearer " 10 // TokenCookieName is the name of the cookie which stores the auth token 11 TokenCookieName = "micro-token" 12 ) 13 14 // SystemRules are the default rules which are applied to the runtime services 15 var SystemRules = []*auth.Rule{ 16 &auth.Rule{ 17 ID: "default", 18 Scope: auth.ScopePublic, 19 Access: auth.AccessGranted, 20 Resource: &auth.Resource{Type: "*", Name: "*", Endpoint: "*"}, 21 }, 22 }