auth

package
v1.0.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL