Documentation ¶
Index ¶
Constants ¶
View Source
const TokenCookieName = "micro-token"
TokenCookieName is the name of the cookie which stores the auth token
Variables ¶
View Source
var SystemRules = []*auth.Rule{ &auth.Rule{ ID: "default", Scope: "*", Resource: &auth.Resource{Type: "*", Name: "*", Endpoint: "*"}, }, &auth.Rule{ ID: "auth-public", Scope: "", Resource: &auth.Resource{Type: "service", Name: "go.micro.auth", Endpoint: "*"}, }, &auth.Rule{ ID: "registry-get", Scope: "", Resource: &auth.Resource{Type: "service", Name: "go.micro.registry", Endpoint: "Registry.GetService"}, }, &auth.Rule{ ID: "registry-list", Scope: "", Resource: &auth.Resource{Type: "service", Name: "go.micro.registry", Endpoint: "Registry.ListServices"}, }, }
SystemRules are the default rules which are applied to the runtime services
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.