We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ad04e commit fd87117Copy full SHA for fd87117
cmd/saml.go
@@ -91,7 +91,7 @@ func getSaml(cmd *cobra.Command, args []string) error {
91
92
if isSso {
93
sr := strings.Split(ssoRole, ":")
94
- if len(sr) > 2 {
+ if len(sr) != 2 {
95
return fmt.Errorf("incorrectly formatted role for AWS SSO - must only be ACCOUNT:ROLE_NAME")
96
}
97
conf.SsoUserEndpoint = fmt.Sprintf("https://portal.sso.%s.amazonaws.com/user", conf.SsoRegion)
0 commit comments