Skip to content

Commit a3e9f2c

Browse files
committed
Improve JWTVerificationException message to include the invalid issuer
Fixes Include issuer URL in error message Fixes #166 blah
1 parent 7093935 commit a3e9f2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/scitokens_internal.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,7 @@ class Validator {
487487
}
488488
}
489489
if (!permitted) {
490-
throw JWTVerificationException(
491-
"Token issuer is not in list of allowed issuers.");
490+
throw JWTVerificationException("Token issuer '" + issuer + "' is not in list of allowed issuers.");
492491
}
493492
}
494493

0 commit comments

Comments
 (0)