request

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator interface {
	// ValidUserFromRequest extracts authentication token from the context (using grpc/metadata)
	// and validates that token against a list of known users. Returns the name of the authenticated
	// user or a gRPC status error if the user was not found or does not have the appropriate permission.
	ValidUserFromRequest(ctx context.Context, reqperm types.Permission) (string, error)
}

Jump to

Keyboard shortcuts

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