Skip to content

Commit

Permalink
Cleaning up log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanHeilman committed Sep 10, 2024
1 parent 4fa08bf commit 98cf8bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions auth/plugins/openpubkey/server/server_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (v *OpenPubkeyIdentityVerifier) Verify(request *http.Request, base64Convers
jwt.WithAudience("unused"),
jwt.WithValidMethods([]string{"RS256", "EdDSA", "ES256"}))
if err != nil || !token.Valid {
log.Error().Msgf("invalid private key token: %s", err)
log.Error().Msgf("invalid OpenPubkey signed JWT: %s", err)
return false
}
if claims, ok := token.Claims.(jwt.MapClaims); ok {
Expand Down Expand Up @@ -147,8 +147,6 @@ func OpenPubkeyAuthPlugin(username string, identityStr string) (auth.RequestIden
issuer := identityStrArr[2]
email := identityStrArr[3]

log.Debug().Msg("parsing OpenPubkey config")

return &OpenPubkeyIdentityVerifier{
username: username,
clientIdOidc: clientId,
Expand Down

0 comments on commit 98cf8bd

Please sign in to comment.