Skip to content

Commit 387419f

Browse files
committed
printout more cjose error details in JWT access token verification
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 3887813 commit 387419f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
08/31/2023
2+
- printout more cjose error details when errors occur verifying JWT access tokens
3+
14
06/29/2023
25
- fix timing issue in check_openidc.c; closes #47
36
- bump to 1.5.2dev

src/jose.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ bool oauth2_jose_jwt_verify(oauth2_log_t *log,
12781278

12791279
jws = cjose_jws_import(token, strlen(token), &err);
12801280
if (jws == NULL) {
1281-
oauth2_error(log, "cjose_jws_import failed: %s", err.message);
1281+
_OAUTH2_UTIL_JOSE_ERR_LOG(log, "cjose_jws_import", err);
12821282
goto end;
12831283
}
12841284

@@ -1317,8 +1317,7 @@ bool oauth2_jose_jwt_verify(oauth2_log_t *log,
13171317

13181318
if (cjose_jws_get_plaintext(jws, &plaintext, &plaintext_len, &err) ==
13191319
false) {
1320-
oauth2_error(log, "cjose_jws_get_plaintext failed: %s",
1321-
err.message);
1320+
_OAUTH2_UTIL_JOSE_ERR_LOG(log, "cjose_jws_get_plaintext", err);
13221321
goto end;
13231322
}
13241323

0 commit comments

Comments
 (0)