Skip to content

Commit 6656ced

Browse files
committed
correct error log upon mismatch in "iss" claim: id_token->JWT
reformat with clang-format 18.1.8 Signed-off-by: Hans Zandbelt <[email protected]>
1 parent f752ffb commit 6656ced

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
08/02/2024
2+
- correct error log upon mismatch in "iss" claim: id_token->JWT
3+
14
06/24/2024
25
- allow to use local file through file:// protocol for metadata or jwks; see #51; thanks @pladen
36
- bump to 1.6.4dev

include/oauth2/nginx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116

117117
// commands
118118

119+
// clang-format off
119120
#define OAUTH2_NGINX_CMD(take, module, directive, primitive) \
120121
{ \
121122
ngx_string(directive), \
@@ -124,6 +125,7 @@
124125
ngx_##module##_set_##primitive, NGX_HTTP_LOC_CONF_OFFSET, \
125126
0, NULL \
126127
}
128+
// clang-format on
127129

128130
// logging
129131

src/cfg_int.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ typedef struct oauth2_cfg_openidc_t {
314314
dst = type##_init(log);
315315

316316
#define _OAUTH2_CFG_CTX_CLONE_END \
317-
end : return dst; \
317+
end: \
318+
return dst; \
318319
}
319320

320321
#define _OAUTH2_CFG_CTX_FREE_START(type) \

src/jose.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ _oauth2_jose_jwt_validate_iss(oauth2_log_t *log, const json_t *json_payload,
10801080
if (strcmp(iss, value) != 0) {
10811081
oauth2_error(log,
10821082
"requested issuer (%s) does not match received "
1083-
"\"%s\" value in id_token (%s)",
1083+
"\"%s\" value in JWT (%s)",
10841084
iss, OAUTH2_JOSE_JWT_ISS, value);
10851085
goto end;
10861086
}

0 commit comments

Comments
 (0)