Skip to content

Commit

Permalink
Merge pull request #746 from mikutas/when_will_it_expire
Browse files Browse the repository at this point in the history
Add the time when it will expire to debug log
  • Loading branch information
mapkon authored Nov 21, 2023
2 parents f91a0bd + cb5abf8 commit e751213
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/saml2aws/commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ func Login(loginFlags *flags.LoginExecFlags) error {
previousCreds, err := sharedCreds.Load()
if err != nil {
log.Println("Unable to load cached credentials.")
} else {
logger.Debug("Credentials will expire at ", previousCreds.Expires)
}
if loginFlags.CredentialProcess {
err = PrintCredentialProcess(previousCreds)
Expand Down

0 comments on commit e751213

Please sign in to comment.