auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TokenCookieName = "vine-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.vine.auth", Endpoint: "*"},
	},
	&auth.Rule{
		ID:       "registry-get",
		Scope:    "",
		Resource: &auth.Resource{Type: "service", Name: "go.vine.registry", Endpoint: "Registry.GetService"},
	},
	&auth.Rule{
		ID:       "registry-list",
		Scope:    "",
		Resource: &auth.Resource{Type: "service", Name: "go.vine.registry", Endpoint: "Registry.ListServices"},
	},
}

SystemRules are the default rules which are applied to the runtime services

Functions

func Generate

func Generate(id string, name string, a auth.Auth) error

Generate generates a service account for and continually refreshes the access token.

Types

This section is empty.

Directories

Path Synopsis
Package provider is an external auth provider e.g oauth
Package provider is an external auth provider e.g oauth
jwt

Jump to

Keyboard shortcuts

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