From 418baae22554b9494f7d98ca0f73f626f6051432 Mon Sep 17 00:00:00 2001 From: Duane Waddle Date: Sun, 12 Apr 2020 13:08:38 -0500 Subject: [PATCH] Remove code incompatible with #469, #481 --- aws_account.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/aws_account.go b/aws_account.go index 80f49b3b0..a12abb192 100644 --- a/aws_account.go +++ b/aws_account.go @@ -29,11 +29,6 @@ func ParseAWSAccounts(samlAssertion string) ([]*AWSAccount, error) { awsURL = "https://signin.amazonaws.cn/saml" } - if strings.Contains(string(decSamlAssertion), "signin.amazonaws-us-gov.com") { - fmt.Println("trying to login AWS GovCloud") - awsURL = "https://signin.amazonaws-us-gov.com/saml" - } - res, err := http.PostForm(awsURL, url.Values{"SAMLResponse": {samlAssertion}}) if err != nil { return nil, errors.Wrap(err, "error retrieving AWS login form")