Skip to content

Instantly share code, notes, and snippets.

@duckfez
Created September 12, 2020 20:42
Show Gist options
  • Save duckfez/c346dcff94d7b2379e7cf52c38630c9c to your computer and use it in GitHub Desktop.
Save duckfez/c346dcff94d7b2379e7cf52c38630c9c to your computer and use it in GitHub Desktop.
tiniest diff
$ git diff commands/console.go
diff --git a/cmd/saml2aws/commands/console.go b/cmd/saml2aws/commands/console.go
index 972d861..968d2f6 100644
--- a/cmd/saml2aws/commands/console.go
+++ b/cmd/saml2aws/commands/console.go
@@ -17,7 +17,7 @@ import (
)
const (
- federationURL = "https://signin.aws.amazon.com/federation"
+ federationURL = "https://signin.amazonaws-us-gov.com/federation"
issuer = "saml2aws"
)
@@ -155,7 +155,7 @@ func federatedLogin(creds *awsconfig.AWSCredentials, consoleFlags *flags.Console
return err
}
- destination := "https://console.aws.amazon.com/"
+ destination := "https://console.amazonaws-us-gov.com/"
loginURL := fmt.Sprintf(
"%s?Action=login&Issuer=%s&Destination=%s&SigninToken=%s",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment