We have used mod auth openidc module in Apache server connected to Okta OIDC. After login into okta -we get multiple redirects back to redirection and again back to okta. Something similar to below issue :
As discussed in this issue. https://github.com/zmartzone/mod_auth_openidc/issues/181
I have made sure that the redirect_uri is separate than the actual url page load url
My set up is exactly as below with a vanity redirection url which is protected
# OIDCRedirectURI is a vanity URL that must point to a path protected by this module but must NOT
point to any content
OIDCRedirectURI https://www.example.com/example/redirect_uri
OIDCCryptoPassphrase <password>
<Location /example/>
AuthType openid-connect
Require valid-user
ProxyPass backendangular/
ProxyPassReverse backendangular/
</Location>