Skip to content

Commit

Permalink
Merge branch 'master' into release-1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames authored Jul 18, 2023
2 parents dcb4c33 + 53701f3 commit a7c052a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/auth0/IdTokenVerifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void verify(String token, Options verifyOptions) throws TokenValidationException
if (isEmpty(orgNameClaim)) {
throw new TokenValidationException("Organization name (org_name) claim must be a string present in the ID token");
}
if (!org.equalsIgnoreCase(orgNameClaim)) {
if (!org.toLowerCase().equals(orgNameClaim)) {
throw new TokenValidationException(String.format("Organization (org_name) claim mismatch in the ID token; expected \"%s\" but found \"%s\"", verifyOptions.organization, orgNameClaim));
}
}
Expand Down

0 comments on commit a7c052a

Please sign in to comment.