-
|
I have an apache 2.4 acting as reverse proxy for an application. I need to conditionally setup a header for the proxy based on the user roles, but I don't know how to use this inside an If statement. As an example, this works appropriately: However, I need to do something like this: The latest doesn't work, as I'm not sure how to actually refer to the mod_auth_openidc expression. As reference I have I have confirmed with a toy Any suggestions on which is the proper way of doing this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I don't think that is possible since it appears that |
Beta Was this translation helpful? Give feedback.
I don't think that is possible since it appears that
<If>statements are processed before authentication happens, see https://httpd.apache.org/docs/current/expr.html#varsI'd suggest to change the app to read the OIDC roles header rather than the Authorization header.