trireme-lib: go.aporeto.io/trireme-lib/controller/pkg/usertokens Index | Files | Directories

package usertokens

import "go.aporeto.io/trireme-lib/controller/pkg/usertokens"

Index

Package Files

usetokens.go

type Verifier Uses

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 Uses

func NewVerifier(v Verifier) Verifier

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

Directories

PathSynopsis
common

Package usertokens imports 5 packages (graph) and is imported by 4 packages. Updated 2018-11-15. Refresh now. Tools for package owners.