saml

package
v0.0.0-...-299aaee Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name  string
	Roles []Role
}

Account represents an AWS account.

type GSuite

type GSuite struct {
	*http.Client
	// contains filtered or unexported fields
}

GSuite is ...

func NewGSuiteSAMLLogin

func NewGSuiteSAMLLogin(idpid, spid string) (g *GSuite, err error)

NewGSuiteSAMLLogin instantiates and returns an *GSuite configured with a cookie jar.

func (*GSuite) Login

func (g *GSuite) Login(e, p string) (accounts []Account, err error)

Login executes the steps required to login using the Google authn flow.

func (*GSuite) RetrieveAWSCredentials

func (g *GSuite) RetrieveAWSCredentials(principal, arn string, duration int64) (o *sts.AssumeRoleWithSAMLOutput, err error)

RetrieveAWSCredentials gets the STS credentials.

func (*GSuite) SaveAWSCredentials

func (g *GSuite) SaveAWSCredentials(o *sts.AssumeRoleWithSAMLOutput, p string) error

SaveAWSCredentials saves the STS credentials to ~/.aws/credentials.

type Role

type Role struct {
	Name string
	ARN  *arn.ARN
}

Role represents and AWS role.

Jump to

Keyboard shortcuts

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