usertokens

package
v10.215.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier interface {
	VerifierType() common.JWTType
	Validate(ctx context.Context, token string) ([]string, bool, string, error)
	Callback(r *http.Request) (string, string, int, error)
	IssueRedirect(string) string
}

Verifier is a generic JWT verifier interface. Different implementations will use different client libraries to verify the tokens. Currently requires only one method. Given a token, return the claims and whether there is a verification error.

func NewVerifier

func NewVerifier(v Verifier) (Verifier, error)

NewVerifier initializes data structures based on the interface that is transmitted over the RPC between main and remote enforcers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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