Documentation ¶
Index ¶
Constants ¶
View Source
const LogFieldRequestID = "requestID"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SsoRedirectUrlAddressTemplate string `json:"SsoRedirectUrlAddressTemplate,omitempty"` SsoRedirectUrlMacClientSecret string `json:"ssoRedirectUrlMacClientSecret,omitempty"` SsoRedirectUrlMacPrivateKey string `json:"ssoRedirectUrlMacPrivateKey,omitempty"` SsoRedirectUrlMacStrength sso_redirector.HmacStrength `json:"ssoRedirectUrlMacStrength,omitempty"` SsoRedirectUrlMacAllowedClockSkew time.Duration `json:"ssoRedirectUrlMacAllowedClockSkew,omitempty"` ClientSecret string `json:"clientSecret,omitempty"` PublicKey string `json:"publicKey,omitempty"` Issuer string `json:"issuer,omitempty"` Audience string `json:"audience,omitempty"` JwksAddress string `json:"jwksAddress,omitempty"` OidcDiscoveryAddress string `json:"oidcDiscoveryAddress,omitempty"` UseDynamicValidation bool `json:"useDynamicValidation,omitempty"` AlgorithmValidationRegex string `json:"algorithmValidationRegex,omitempty"` AudienceValidationRegex string `json:"audienceValidationRegex,omitempty"` IssuerValidationRegex string `json:"issuerValidationRegex,omitempty"` SubjectValidationRegex string `json:"subjectValidationRegex,omitempty"` IdValidationRegex string `json:"idValidationRegex,omitempty"` TokenAllowedClockSkew time.Duration `json:"tokenAllowedClockSkew,omitempty"` IgnorePathRegex string `json:"ignorePathRegex,omitempty"` CredentialsOptional bool `json:"credentialsOptional,omitempty"` ValidateOnOptions bool `json:"validateOnOptions,omitempty"` }
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
Directories ¶
Path | Synopsis |
---|---|
Package assert provides convenience assert methods to complement the built in go testing library.
|
Package assert provides convenience assert methods to complement the built in go testing library. |
Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html
|
Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html |
validator
Package validator contains an implementation of jwtmiddleware.ValidateToken using the Square go-jose package version 2.
|
Package validator contains an implementation of jwtmiddleware.ValidateToken using the Square go-jose package version 2. |
buffer
Package buffer provides a thin wrapper around a byte slice.
|
Package buffer provides a thin wrapper around a byte slice. |
color
Package color adds coloring functionality for TTY output.
|
Package color adds coloring functionality for TTY output. |
exit
Package exit provides stubs so that unit tests can exercise code that calls os.Exit(1).
|
Package exit provides stubs so that unit tests can exercise code that calls os.Exit(1). |
multierr
Package multierr allows combining one or more errors together.
|
Package multierr allows combining one or more errors together. |
Click to show internal directories.
Click to hide internal directories.