provisioner

package
v0.0.0-...-4c708ec Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMACProvisioner

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

func NewProvisioner

func NewProvisioner(_ context.Context, password string) *HMACProvisioner

func (*HMACProvisioner) New

func (p *HMACProvisioner) New(ctx context.Context, options tokens.Options) (string, error)

func (*HMACProvisioner) Validate

func (p *HMACProvisioner) Validate(ctx context.Context, tokenString string, scopes []tokens.Scope) (tokens.Token, error)

type StandardClaimsWithScopes

type StandardClaimsWithScopes struct {
	jwt.StandardClaims
	Scopes []string `json:"scopes,omitempty"`
}

type Token

func (Token) GetComment

func (t Token) GetComment() string

func (Token) GetCreatedAt

func (t Token) GetCreatedAt() time.Time

func (Token) GetExchangeBy

func (t Token) GetExchangeBy() time.Time

func (Token) GetExchanged

func (t Token) GetExchanged() bool

func (Token) GetExpiry

func (t Token) GetExpiry() time.Time

func (Token) GetLastUsedAt

func (t Token) GetLastUsedAt() time.Time

func (Token) GetLifetime

func (t Token) GetLifetime() time.Duration

func (Token) GetName

func (t Token) GetName() string

func (Token) GetNonce

func (t Token) GetNonce() string

func (Token) GetScopes

func (t Token) GetScopes() []string

func (Token) GetTokenID

func (t Token) GetTokenID() string

func (Token) GetUserID

func (t Token) GetUserID() string

Jump to

Keyboard shortcuts

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