Skip to content

Commit 8873a27

Browse files
committed
log the right tokens... :/
1 parent cbb57cf commit 8873a27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zsshlib/oidc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func OIDCFlow(initialContext context.Context, flags *SshFlags) (string, error) {
4141
return "", err
4242
}
4343

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

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

150149
select {
151150
case tokens := <-resultChan:
152-
Logger().Debugf("Refresh token: %s", tokens.RefreshToken)
153-
Logger().Debugf("Access token: %s", tokens.AccessToken)
151+
log.Debugf("ID token: %s", tokens.IDToken)
152+
log.Debugf("Refresh token: %s", tokens.RefreshToken)
153+
log.Debugf("Access token: %s", tokens.AccessToken)
154154
return tokens.AccessToken, nil
155155
case <-ctx.Done():
156156
return "", errors.New("timeout: OIDC authentication took too long")

0 commit comments

Comments
 (0)