Skip to content

Commit

Permalink
Minor logging correction for ClientID validation
Browse files Browse the repository at this point in the history
  • Loading branch information
radujipa authored Sep 27, 2022
1 parent da2258e commit 3479f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jwtverifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,15 @@ func (j *JwtVerifier) validateClientId(clientId interface{}) error {
switch v := clientId.(type) {
case string:
if v != cid {
return fmt.Errorf("aud: %s does not match %s", v, cid)
return fmt.Errorf("cid: %s does not match %s", v, cid)
}
case []string:
for _, element := range v {
if element == cid {
return nil
}
}
return fmt.Errorf("aud: %s does not match %s", v, cid)
return fmt.Errorf("cid: %s does not match %s", v, cid)
default:
return fmt.Errorf("unknown type for clientId validation")
}
Expand Down

0 comments on commit 3479f3f

Please sign in to comment.