Skip to content

Commit

Permalink
correct error log upon mismatch in "iss" claim: id_token->JWT
Browse files Browse the repository at this point in the history
reformat with clang-format 18.1.8

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Aug 2, 2024
1 parent f752ffb commit 6656ced
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
08/02/2024
- correct error log upon mismatch in "iss" claim: id_token->JWT

06/24/2024
- allow to use local file through file:// protocol for metadata or jwks; see #51; thanks @pladen
- bump to 1.6.4dev
Expand Down
2 changes: 2 additions & 0 deletions include/oauth2/nginx.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@

// commands

// clang-format off
#define OAUTH2_NGINX_CMD(take, module, directive, primitive) \
{ \
ngx_string(directive), \
Expand All @@ -124,6 +125,7 @@
ngx_##module##_set_##primitive, NGX_HTTP_LOC_CONF_OFFSET, \
0, NULL \
}
// clang-format on

// logging

Expand Down
3 changes: 2 additions & 1 deletion src/cfg_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ typedef struct oauth2_cfg_openidc_t {
dst = type##_init(log);

#define _OAUTH2_CFG_CTX_CLONE_END \
end : return dst; \
end: \
return dst; \
}

#define _OAUTH2_CFG_CTX_FREE_START(type) \
Expand Down
2 changes: 1 addition & 1 deletion src/jose.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ _oauth2_jose_jwt_validate_iss(oauth2_log_t *log, const json_t *json_payload,
if (strcmp(iss, value) != 0) {
oauth2_error(log,
"requested issuer (%s) does not match received "
"\"%s\" value in id_token (%s)",
"\"%s\" value in JWT (%s)",
iss, OAUTH2_JOSE_JWT_ISS, value);
goto end;
}
Expand Down

0 comments on commit 6656ced

Please sign in to comment.