When using mod_auth_openidc, something is breaking apache QUERY_STRING #584
RetiredHorseTrainer
started this conversation in
General
Replies: 2 comments
-
Firstly I would advise you to use a recent version of the module as there have been issues that may be related in the past, e.g. #420 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Manually upgrading to latest version fixed the problem. The Ubuntu repository does not contain the latest version. I'll have to manually upgrade from now on. Thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ubuntu 18.04
Apache 2.4.29 (Ubuntu)
mod_auth_oidc 2.3.3-1build1
IDP is WSO2IS 5.10
I’ve set up an apache proxy server for the purpose of accepting a proxy request on behalf of a subscription service. I’m using mod_auth_openidc as the auth module. The proxy server link (that points to our proxy server) contains the actual back-end URL to the subscription service:
Format: https://someproxyserver.com/login?url=
Example: https://someproxyserver.com/login?url=https://search.bosco.com/login.aspx?direct=true&db=abc&AN=31415926&site=ehost-linked
I use a RewriteCond and RewriteRule to extract the back-end URL so I can proxy it and query the subscription service. When I enable mod_auth_openidc, the apache QUERY_STRING gets modified somehow so my RewriteCond never matches. What happens is the back-end host name and part of the URL gets deleted from the apache QUERY_STRING variable. It either gets deleted or it never makes it into the variable.
If I do not configure any auth, everything works. If I configure apache basic auth, everything works. If I configure mod_auth_openidc, part of the QUERY_STRING is missing every time. Here is what the QUERY_STRING looks like when using no auth or basic auth enabled:
url=https://search.bosco.com/login.aspx?direct=true&db=abc&AN=31415926&site=ehost-linked
Here is what the query string looks like with mod_auth_openidc enabled:
login?direct=true&db=abc&AN=31415926&site=ehost-linked
Somehow the use of mod_auth_openidc is causing problems with the apache QUERY_STRING variable. This is over my head so I hope someone can point me in the right direction to get this solved. See my apache virtual host config below. Again, everything works great as long as I’m not using mod_auth_openidc.
`<VirtualHost *:80>
`
Beta Was this translation helpful? Give feedback.
All reactions