Skip to content

Commit

Permalink
fix: don't panic if not successful in getting credentials from okta
Browse files Browse the repository at this point in the history
  • Loading branch information
bitte-ein-bit committed May 21, 2024
1 parent 7ddc04d commit f0af210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okta/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ func Get(app, provider, pArn, awsRegion string, duration int32, interactive bool
Password: string(pass),
})
s.Stop()
log.Log.WithField("Status", resp.Status).WithError(err).Trace("GetSessionToken done")
if err != nil {
return nil, fmt.Errorf("getting session token: %v", err)
}
log.Log.WithField("Status", resp.Status).Trace("GetSessionToken done")

var st string

Expand Down

0 comments on commit f0af210

Please sign in to comment.