Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ASAPTokenComponent ¶
type ASAPTokenComponent struct{}
ASAPTokenComponent is an ASAP decorator plugin.
func (*ASAPTokenComponent) New ¶
func (*ASAPTokenComponent) New(ctx context.Context, conf *ASAPTokenConfig) (func(http.RoundTripper) http.RoundTripper, error)
New generates the middleware.
func (*ASAPTokenComponent) Settings ¶
func (m *ASAPTokenComponent) Settings() *ASAPTokenConfig
Settings generates a config populated with defaults.
type ASAPTokenConfig ¶
type ASAPTokenConfig struct { PrivateKey string `description:"RSA private key to use when signing tokens."` KID string `description:"JWT kid value to include in tokens."` TTL time.Duration `description:"Lifetime of a token."` Issuer string `description:"JWT issuer value to include in tokens."` Audiences []string `description:"JWT audience values to include in tokens."` }
ASAPTokenConfig is used to configure ASAP token generation.
Click to show internal directories.
Click to hide internal directories.