Skip to content

Commit

Permalink
printout more cjose error details in JWT access token verification
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Aug 31, 2023
1 parent 3887813 commit 387419f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
08/31/2023
- printout more cjose error details when errors occur verifying JWT access tokens

06/29/2023
- fix timing issue in check_openidc.c; closes #47
- bump to 1.5.2dev
Expand Down
5 changes: 2 additions & 3 deletions src/jose.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ bool oauth2_jose_jwt_verify(oauth2_log_t *log,

jws = cjose_jws_import(token, strlen(token), &err);
if (jws == NULL) {
oauth2_error(log, "cjose_jws_import failed: %s", err.message);
_OAUTH2_UTIL_JOSE_ERR_LOG(log, "cjose_jws_import", err);
goto end;
}

Expand Down Expand Up @@ -1317,8 +1317,7 @@ bool oauth2_jose_jwt_verify(oauth2_log_t *log,

if (cjose_jws_get_plaintext(jws, &plaintext, &plaintext_len, &err) ==
false) {
oauth2_error(log, "cjose_jws_get_plaintext failed: %s",
err.message);
_OAUTH2_UTIL_JOSE_ERR_LOG(log, "cjose_jws_get_plaintext", err);
goto end;
}

Expand Down

0 comments on commit 387419f

Please sign in to comment.