Skip to content

Commit

Permalink
print the user_code during login to verify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
PacoVK committed Sep 15, 2023
1 parent 8d63f4b commit 1d0ab1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sso/awssso_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"context"
"errors"
"fmt"
"os"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
Expand Down Expand Up @@ -226,6 +227,7 @@ func (as *AWSSSO) getDeviceAuthInfo() (DeviceAuthInfo, error) {
VerificationUriComplete: as.DeviceAuth.VerificationUriComplete,
UserCode: as.DeviceAuth.UserCode,
}
fmt.Fprintf(os.Stderr, "Please verify your login with the following code: %s\n", info.UserCode)
return info, nil
}

Expand Down

0 comments on commit 1d0ab1f

Please sign in to comment.