samlcache

package
v2.36.10 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SAMLAssertionValidityJitter is a small time delta used to avoid the race condition
	// where a token expires between the time it's validated and re-used.
	SAMLAssertionValidityJitter = -1 * time.Second
	SAMLCacheFilePermissions    = 0600
	SAMLCacheDirPermissions     = 0700
	SAMLCacheDir                = "saml2aws"
)

Variables

View Source
var (
	ErrInvalidCachePath = errors.New("Cannot evaluate Cache file path")
)

Functions

This section is empty.

Types

type SAMLCacheProvider

type SAMLCacheProvider struct {
	Filename string
	Account  string
}

SAMLCacheProvider loads aws credentials file

func (*SAMLCacheProvider) IsValid

func (p *SAMLCacheProvider) IsValid() bool

func (*SAMLCacheProvider) ReadRaw added in v2.34.0

func (p *SAMLCacheProvider) ReadRaw() (string, error)

func (*SAMLCacheProvider) WriteRaw added in v2.34.0

func (p *SAMLCacheProvider) WriteRaw(samlAssertion string) error

Jump to

Keyboard shortcuts

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