Skip to content

Commit 42d201b

Browse files
authored
Merge pull request #167 from djw8605/add-issuer-in-error
Improve JWTVerificationException message to include the invalid issuer
2 parents 7093935 + c503bc7 commit 42d201b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scitokens_internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,8 @@ class Validator {
488488
}
489489
if (!permitted) {
490490
throw JWTVerificationException(
491-
"Token issuer is not in list of allowed issuers.");
491+
"Token issuer '" + issuer +
492+
"' is not in list of allowed issuers.");
492493
}
493494
}
494495

0 commit comments

Comments
 (0)