Skip to content

Commit

Permalink
Merge pull request #91 from radujipa/patch-1
Browse files Browse the repository at this point in the history
Minor logging correction for ClientID validation
  • Loading branch information
MikeMondragon-okta authored May 15, 2023
2 parents 1767ef1 + 3479f3f commit 402b9e3
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 @@ -292,15 +292,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 402b9e3

Please sign in to comment.