Skip to content

Commit

Permalink
use access, not idtoken
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 2, 2024
1 parent 14ddbd7 commit 087f10e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zsshlib/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func GetToken(ctx context.Context, config *OIDCConfig) (string, error) {

select {
case tokens := <-resultChan:
return tokens.IDToken, nil
return tokens.AccessToken, nil
case <-ctx.Done():
return "", errors.New("Timeout: OIDC authentication took too long")
}
Expand Down Expand Up @@ -483,7 +483,7 @@ func hostKeyCallback(hostname string, remote net.Addr, key ssh.PublicKey) error
}

knownHosts := knownHostsFile()

cb, err := knownhosts.New(knownHosts)
if err != nil {
return err
Expand Down

0 comments on commit 087f10e

Please sign in to comment.