asap

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

component-asap - Settings component for generating on demand ASAP tokens

License

This project is licensed under Apache 2.0. See LICENSE.txt for details.

Contributing Agreement

Atlassian requires signing a contributor's agreement before we can accept a patch. If you are an individual you can fill out the individual CLA. If you are contributing on behalf of your company then please fill out the corporate CLA.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASAPToken

func ASAPToken(_ context.Context, _ string, _ string, _ string) (interface{}, error)

ASAPToken satisfies the NewComponent signature.

Types

type ASAPTokenComponent

type ASAPTokenComponent struct{}

ASAPTokenComponent is an ASAP decorator plugin.

func (*ASAPTokenComponent) New

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.

func (*ASAPTokenConfig) Name

func (c *ASAPTokenConfig) Name() string

Name of the config root.

Jump to

Keyboard shortcuts

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