jwk

package
v0.0.0-...-8ea2dd3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "jwk"

BackendName name

View Source
const BearerPrefix = "bearer "

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimFilter

type ClaimFilter struct {
	Name   string   `json:"name,omitempty"`
	Values []string `json:"value,omitempty"`
}

type Jwk

type Jwk struct {
	TokenName               string        `json:"token_name,omitempty"`
	TokenSources            []string      `json:"token_sources,omitempty"`
	AuthorizedIssuersRegexP []string      `json:"authorized_issuers_regexp,omitempty"`
	JwkCacheDuration        int64         `json:"jwk_cache_duration,omitempty"`
	WellKnownPath           string        `json:"well_known_path,omitempty"`
	Debug                   bool          `json:"debug,omitempty"`
	ClaimFilters            []ClaimFilter `json:"claim_filter"`

	sync.Mutex
	// contains filtered or unexported fields
}

Jwk

func NewDriver

func NewDriver() *Jwk

NewDriver returns a new instance of Jwk with some defaults

func (*Jwk) Authenticate

func (h *Jwk) Authenticate(r *http.Request) (string, error)

Authenticate fulfils the backend interface

func (Jwk) Validate

func (h Jwk) Validate() error

Validate verifies that this module is functional with the given configuration

Jump to

Keyboard shortcuts

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