Skip to content

Commit

Permalink
Revert breaking change to 'granted login' with additional prompt for …
Browse files Browse the repository at this point in the history
…SSO scopes (#618)

* Revert breaking change to 'granted login' with additional prompt for SSO scopes

This fixes an issue where 'granted login' would trigger an interactive prompt if --sso-scopes were not provided.

* fix Go build
  • Loading branch information
chrnorm committed Mar 6, 2024
1 parent 3ae786e commit 63cf3ec
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/granted/sso.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io"
"strings"
"sync"

"net/http"
Expand Down Expand Up @@ -244,16 +243,6 @@ var LoginCommand = cli.Command{

ssoScopes := c.StringSlice("sso-scope")

if ssoScopes == nil {
var scopesString string
in2 := survey.Input{Message: "SSO Scopes", Default: "sso:account:access"}
err := testable.AskOne(&in2, &scopesString)
if err != nil {
return err
}
ssoScopes = strings.Split(scopesString, ",")
}

cfg := aws.NewConfig()
cfg.Region = ssoRegion

Expand Down

0 comments on commit 63cf3ec

Please sign in to comment.