OpenIDC/mod_auth_openidc

redirection after code validation

MohamedAnouar opened this issue · 1 comments

Hello,

I had my configuration working perfectly on apache 2.4.46, but once I updated the config to 2.4.53, I noticed an issue that is linked to the last redirection after code validation. https://example.com/?code... : code validation is OK.
The user got redirected to https://example.com:8080/app instead of https://example:443/app the external route (exposed via openshift). OIDC Module is forcing the use of virtual host port instead of the ServerName.
Normally we expect after all the authentication is good that the user should be redirected to /app without any dns. I tried modifying the location header for the last redirection but without success. Do you have a fix?
my configuration :
<VirtualHost *:8080>
ServerName example.com
ServerAlias example.com
SSLEngine on
SSLCertificateFile
SSLCertificateKeyFile
SSLCertificateChainFile

OIDCProviderMetadataURL

OIDCClientID <client_id>
OIDCClientSecret <client_secret>

OIDCCryptoPassphrase

OIDCRedirectURI https:///

<Location "/">
AuthType openid-connect
Require valid-user