Versions in this module Expand all Collapse all v1 v1.0.3 Sep 7, 2023 v1.0.2 Apr 22, 2020 Changes in this version + const AwsRoleAttribute + const AwsRoleSessionNameAttribute + const AwsSessionDurationAttribute + func ExpandFilePath(s string) string + type AdfsAuthForm struct + Fields map[string]string + Host string + Port string + URL string + func NewAdfsAuthFormFromBytes(s []byte) (*AdfsAuthForm, error) + func NewAdfsAuthFormFromString(s string) (*AdfsAuthForm, error) + type AdfsAuthResponseForm struct + Fields map[string]string + Host string + Port string + URL string + func NewAdfsAuthResponseFormFromBytes(s []byte) (*AdfsAuthResponseForm, error) + func NewAdfsAuthResponseFormFromString(s string) (*AdfsAuthResponseForm, error) + type AdfsConfiguration struct + Hostname string + type AssumedRoleUser struct + Arn string + AssumedRoleId string + type Aws struct + Credentials []*AwsCredentials + type AwsConfiguration struct + AuthenticationURL string + Roles []*AwsConfigurationRole + type AwsConfigurationRole struct + AccountID string + DefaultRegion string + Name string + ProfileName string + type AwsCredentials struct + AccessKeyId string + DefaultRegion string + ProfileName string + Raw *AwsStsResponse + SecretAccessKey string + SessionToken string + func NewAwsCredentialsFromStsResponse(resp *AwsStsResponse) (*AwsCredentials, error) + func (c *AwsCredentials) IsValid() error + func (c *AwsCredentials) WriteCredentialsFile(fp string) error + func (c *AwsCredentials) WriteEnvVarsFile(fp string) error + type AwsRole struct + AccountID string + DefaultRegion string + IdentityProviderARN string + Name string + ProfileName string + Raw string + RoleARN string + func ParseAwsRole(s string) (*AwsRole, error) + type AwsStsAssumeRoleWithSAMLResponse struct + AssumeRoleWithSAMLResult *AwsStsResponse + ResponseMetadata AwsStsResponseMetadata + type AwsStsAssumeRoleWithSAMLResult struct + AssumeRoleWithSAMLResult *AwsStsResponse + type AwsStsErrorResponseBody struct + Error AwsStsResponseError + type AwsStsResponse struct + AssumedRoleUser *AssumedRoleUser + Audience string + Credentials *AwsStsResponseCredentials + Issuer string + NameQualifier string + Subject string + SubjectType string + func NewAwsStsResponseFromBytes(s []byte) (*AwsStsResponse, error) + func NewAwsStsResponseFromString(s string) (*AwsStsResponse, error) + type AwsStsResponseBody struct + AssumeRoleWithSAMLResponse AwsStsAssumeRoleWithSAMLResponse + type AwsStsResponseCredentials struct + AccessKeyId string + SecretAccessKey string + SessionToken string + type AwsStsResponseError struct + Code string + Message string + Type string + type AwsStsResponseMetadata struct + RequestId string + type AzureAuthResponseForm struct + Fields map[string]string + Host string + Port string + URL string + func NewAzureAuthResponseFormFromBytes(s []byte) (*AzureAuthResponseForm, error) + func NewAzureAuthResponseFormFromString(s string) (*AzureAuthResponseForm, error) + type AzureAuthnRequest struct + ApplicationID string + ConsumerURL string + ID string + TenantID string + URL string + type AzureConfiguration struct + ApplicationID string + TenantID string + type BuildInfo struct + Architecture string + Date string + OperatingSystem string + User string + type Client struct + Aws Aws + Config Configuration + Info Info + Name string + Runtime StateMachine + func New() *Client + func (c *Client) AssumeRoleWithSaml() error + func (c *Client) AuthenticateWithAdfs() error + func (c *Client) AuthenticateWithAzure() error + func (c *Client) DoAzureAuthnRequestWithAdfs(r *AzureAuthnRequest) error + func (c *Client) GetAdfsAuthenticationRequestBody() (url.Values, error) + func (c *Client) GetAdfsMetadata() error + func (c *Client) GetAuthenticationURL() error + func (c *Client) GetAwsCredentials() ([]*AwsCredentials, error) + func (c *Client) GetAzureAuthnRequest() (*AzureAuthnRequest, error) + func (c *Client) GetRequestedAwsRoles() []*AwsRole + func (c *Client) GetSamlAssertions() error + func (c *Client) GetVersionInfo() string + func (c *Client) InteractiveConfig(s string) error + func (c *Client) IsAwsRoleAvailable() error + func (c *Client) IsMetadataExists() bool + func (c *Client) IsMetadataNeeded() bool + func (c *Client) IsSamlAssertionValid() error + func (c *Client) OutputCurrentState() error + func (c *Client) ReadMetadataFromFile() error + func (c *Client) ReadStaticSamlResponseFile() error + func (c *Client) RequestAwsRole(reqRole map[string]string) error + func (c *Client) SetAdfsHostname(s string) error + func (c *Client) SetAzureApplicationID(s string) error + func (c *Client) SetAzureTenantID(s string) error + func (c *Client) SetConfigFile(s string) error + func (c *Client) SetLogLevel(level log.Level) + func (c *Client) SetPassword(s string) error + func (c *Client) SetStaticSamlResponseFile(s string) error + func (c *Client) SetUsername(s string) error + func (c *Client) UpdateAwsRoles() error + func (c *Client) WriteMetadataToFile() error + type Configuration struct + Adfs AdfsConfiguration + Aws AwsConfiguration + Azure AzureConfiguration + Domain string + File File + Password string + Static StaticConfiguration + Username string + type File struct + Dir string + Name string + Path string + type GitInfo struct + Branch string + Commit string + type Info struct + Build BuildInfo + Description string + Documentation string + Git GitInfo + Name string + Version string + type SamlAssertion struct + AttributeStatement *SamlAssertionAttributeStatement + AuthnStatement SamlAssertionAuthnStatement + Conditions SamlAssertionConditions + ID string + IssueInstant time.Time + Issuer string + Subject SamlAssertionSubject + Version string + XMLName xml.Name + type SamlAssertionAttribute struct + Name string + NameFormat string + Values []SamlAssertionAttributeValue + XMLName xml.Name + type SamlAssertionAttributeStatement struct + Attributes []SamlAssertionAttribute + XMLName xml.Name + type SamlAssertionAttributeValue struct + Type string + Value string + XMLNS string + XMLName xml.Name + type SamlAssertionAudienceRestriction struct + Audience string + XMLName xml.Name + type SamlAssertionAuthnContext struct + AuthnContextClassRef string + XMLName xml.Name + type SamlAssertionAuthnStatement struct + AuthnContext SamlAssertionAuthnContext + AuthnInstant time.Time + SessionIndex string + SessionNotOnOrAfter time.Time + XMLName xml.Name + type SamlAssertionConditions struct + AudienceRestriction SamlAssertionAudienceRestriction + NotBefore time.Time + NotOnOrAfter time.Time + XMLName xml.Name + type SamlAssertionNameID struct + Format string + ID string + SPNameQualifier string + XMLName xml.Name + type SamlAssertionSubject struct + Confirmation SamlAssertionSubjectConfirmation + NameID SamlAssertionNameID + XMLName xml.Name + type SamlAssertionSubjectConfirmation struct + Data SamlAssertionSubjectConfirmationData + Method string + XMLName xml.Name + type SamlAssertionSubjectConfirmationData struct + InResponseTo string + NotOnOrAfter time.Time + Recipient string + XMLName xml.Name + type SamlAuthRequestParams struct + ID string + Issuer string + Timestamp string + type SamlClaim struct + Type string + Value string + func ParseSamlResponseClaim(t, s string) *SamlClaim + type SamlProtocolIssuer struct + Format string + Issuer string + XMLName xml.Name + type SamlProtocolStatus struct + StatusCode SamlProtocolStatusCode + XMLName xml.Name + type SamlProtocolStatusCode struct + Value string + XMLName xml.Name + type SamlResponse struct + Assertion SamlAssertion + Destination string + ID string + IssueInstant time.Time + Issuer SamlProtocolIssuer + Status SamlProtocolStatus + Version string + XMLName xml.Name + func (r *SamlResponse) GetAttributes() (*SamlResponseData, error) + type SamlResponseAssertions struct + File File + Plain string + Raw []byte + func (a *SamlResponseAssertions) GetEncoded() string + func (a *SamlResponseAssertions) GetPath() string + type SamlResponseData struct + Aws struct{ ... } + Claims []*SamlClaim + Issuer string + Success bool + type SamlServiceMetadata struct + File File + Plain string + Raw []byte + URL string + type SamlStateMachine struct + Assertions *SamlResponseAssertions + Attributes *SamlResponseData + Response SamlResponse + type StateMachine struct + AuthenticationURL string + Metadata SamlServiceMetadata + Saml SamlStateMachine + type StaticConfiguration struct + SamlResponseFile string + type WebResponse struct + Redirect bool + RedirectURL string + Success bool