samlcache

package
v2.34.20 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 12 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

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

func (*SAMLCacheProvider) WriteRaw

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