jwtutil

package module
v0.1.1-pre1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenSource

func NewTokenSource(config TokenSourceConfig) (oauth2.TokenSource, error)

NewTokenSource makes a new token source

Types

type KeySource

type KeySource struct {
	// contains filtered or unexported fields
}

func NewKeySource

func NewKeySource(vaultClient *api.Client, mountPath string) *KeySource

func (*KeySource) LookupKey

func (ks *KeySource) LookupKey(keyID string) (interface{}, error)

type TokenSourceConfig

type TokenSourceConfig struct {
	// Mount path of the jwt secret backend. Defaults to "jwt"
	Mount string

	// Role name of the role
	Role string

	// Claims to include in the JWTs
	Claims map[string]interface{}

	// Client for accessing Vault
	Client *api.Client
}

Jump to

Keyboard shortcuts

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