Skip to content

Commit

Permalink
fix typo: access_token -> access_token_type
Browse files Browse the repository at this point in the history
for passing the access token type in a header/envvar

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Jun 6, 2024
1 parent e1eacaa commit 731cdbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mod_auth_openidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,8 @@ apr_byte_t oidc_session_pass_tokens(request_rec *r, oidc_cfg_t *cfg, oidc_sessio
const char *access_token_type = oidc_session_get_access_token_type(r, session);
if ((oidc_cfg_dir_pass_access_token_get(r) != 0) && access_token_type != NULL) {
/* pass it to the app in a header or environment variable */
oidc_util_set_app_info(r, OIDC_APP_INFO_ACCESS_TOKEN_TYPE, access_token, OIDC_DEFAULT_HEADER_PREFIX,
pass_in, encoding);
oidc_util_set_app_info(r, OIDC_APP_INFO_ACCESS_TOKEN_TYPE, access_token_type,
OIDC_DEFAULT_HEADER_PREFIX, pass_in, encoding);
}

/* set the expiry timestamp in the app headers/variables */
Expand Down

0 comments on commit 731cdbd

Please sign in to comment.