Skip to content

Commit

Permalink
Fix error when flawed okta.yaml can cause a panic if error not checked.
Browse files Browse the repository at this point in the history
  • Loading branch information
monde committed Nov 2, 2023
1 parent 2e98960 commit 3561c6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/webssoauth/webssoauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,8 @@ func (w *WebSSOAuthentication) promptForRole(idp string, roleARNs []string) (rol
// If the fedApp has already been selected via an ask one survey we don't need
// to pretty print out the IdP name again.
func (w *WebSSOAuthentication) promptForIDP(idpARNs []string) (idpARN string, err error) {
oktaConfig, _ := w.config.OktaConfig()
var configIDPs map[string]string
if err == nil {
if oktaConfig, cErr := w.config.OktaConfig(); cErr == nil {
configIDPs = oktaConfig.AWSCLI.IDPS
}

Expand Down

0 comments on commit 3561c6f

Please sign in to comment.