diff --git a/src/mod_auth_openidc.c b/src/mod_auth_openidc.c index b7b667e0..44871062 100644 --- a/src/mod_auth_openidc.c +++ b/src/mod_auth_openidc.c @@ -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 */