Skip to content

Commit

Permalink
log the right tokens... :/
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 21, 2024
1 parent cbb57cf commit 8873a27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zsshlib/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func OIDCFlow(initialContext context.Context, flags *SshFlags) (string, error) {
return "", err
}

log.Debugf("ID token: %s", token)
log.Infof("OIDC auth flow succeeded")

return token, nil
Expand Down Expand Up @@ -149,8 +148,9 @@ func GetToken(ctx context.Context, config *OIDCConfig) (string, error) {

select {
case tokens := <-resultChan:
Logger().Debugf("Refresh token: %s", tokens.RefreshToken)
Logger().Debugf("Access token: %s", tokens.AccessToken)
log.Debugf("ID token: %s", tokens.IDToken)
log.Debugf("Refresh token: %s", tokens.RefreshToken)
log.Debugf("Access token: %s", tokens.AccessToken)
return tokens.AccessToken, nil
case <-ctx.Done():
return "", errors.New("timeout: OIDC authentication took too long")
Expand Down

0 comments on commit 8873a27

Please sign in to comment.