app

package
v0.0.0-...-37d6c06 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const AWS_FEDERATED_URL = "https://signin.aws.amazon.com/federation"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRolesOutput

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

type CredentialsResult

type CredentialsResult struct {
	ProfileName  string
	ExpiresAt    string
	WasSuccesful bool
}

type LoginResponse

type LoginResponse struct {
	SigninToken string `json:"SigninToken"`
}

type LoginUrlParams

type LoginUrlParams struct {
	Issuer      string
	Destination string
	SigninToken string
}

func (*LoginUrlParams) GetUrl

func (l *LoginUrlParams) GetUrl() string

type RoleCredentialsOutput

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

type SSOFlow

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

func GetCachedSSOFlow

func GetCachedSSOFlow(org config.Organization) (*SSOFlow, error)

func Login

func Login(
	org config.Organization,
	forceLogin, noBrowser bool,
	msgBus *bus.Bus,
) (*SSOFlow, error)

func (*SSOFlow) GetCredentials

func (s *SSOFlow) GetCredentials() ([]CredentialsResult, error)

func (*SSOFlow) GetCredsByRoleName

func (s *SSOFlow) GetCredsByRoleName(roleName string, accountId string) (*sso.GetRoleCredentialsOutput, error)

func (*SSOFlow) PopulateRoles

func (s *SSOFlow) PopulateRoles() ([]string, error)

type SessionUrlParams

type SessionUrlParams struct {
	AccessKeyId     string `json:"sessionId"`
	SecretAccessKey string `json:"sessionKey"`
	SessionToken    string `json:"sessionToken"`
}

func (*SessionUrlParams) Encode

func (s *SessionUrlParams) Encode() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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