identity

package
v0.0.0-...-b7effc6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchKeys

func FetchKeys(verifierKeyURI string, client HTTPClient) (map[string]*rsa.PublicKey, error)

func MustFetchKeys

func MustFetchKeys(verifierKeyURI string, client HTTPClient) map[string]*rsa.PublicKey

Types

type CustomClaims

type CustomClaims struct {
	Org string `json:"custom:org"`
	jwt.StandardClaims
}

func (*CustomClaims) Valid

func (c *CustomClaims) Valid() error

type HTTPClient

type HTTPClient interface {
	Get(url string) (resp *http.Response, err error)
}

type Validator

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

func NewValidator

func NewValidator(publicKeys map[string]*rsa.PublicKey) *Validator

func (*Validator) IsValid

func (v *Validator) IsValid(authHeader string) (ok bool, org string)

Jump to

Keyboard shortcuts

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