Skip to content

Commit fd87117

Browse files
authored
fix: saml sso-role validation (#11)
1 parent 50ad04e commit fd87117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/saml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func getSaml(cmd *cobra.Command, args []string) error {
9191

9292
if isSso {
9393
sr := strings.Split(ssoRole, ":")
94-
if len(sr) > 2 {
94+
if len(sr) != 2 {
9595
return fmt.Errorf("incorrectly formatted role for AWS SSO - must only be ACCOUNT:ROLE_NAME")
9696
}
9797
conf.SsoUserEndpoint = fmt.Sprintf("https://portal.sso.%s.amazonaws.com/user", conf.SsoRegion)

0 commit comments

Comments
 (0)