Skip to content

Commit

Permalink
Remove code incompatible with Versent#469, Versent#481
Browse files Browse the repository at this point in the history
  • Loading branch information
duckfez committed Apr 12, 2020
1 parent 48077d7 commit 418baae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions aws_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 418baae

Please sign in to comment.