Skip to content

Commit

Permalink
fix OIDCPassClaimsAs environment bug introduced in 2.4.15.4
Browse files Browse the repository at this point in the history
see #1196; thanks @HolgerHees

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Mar 13, 2024
1 parent 3bb1e7c commit 595681c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
03/13/2024
- fix compilation without libhiredis; closes #1195 ; thanks @HolgerHees
conditionally define oidc_set_redis_connect_timeout
- fix `OIDCPassClaimsAs environment` bug introduced in 2.4.15.4; see #1196; thanks @HolgerHees

03/12/2024
- release 2.4.15.4
Expand Down
2 changes: 1 addition & 1 deletion src/mod_auth_openidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ static apr_byte_t oidc_set_app_claims(request_rec *r, const oidc_cfg *const cfg,
apr_byte_t pass_envvars = oidc_cfg_dir_pass_info_in_envvars(r);

// optimize performance when `OIDCPassClaimsAs none` is set
if ((pass_headers == FALSE) && (pass_headers == FALSE))
if ((pass_headers == FALSE) && (pass_envvars == FALSE))
return TRUE;

/* decode the string-encoded attributes in to a JSON structure */
Expand Down

0 comments on commit 595681c

Please sign in to comment.