VHost Authentication with FusionAuth behind ReversProxy (Apache2) and mod_auth_openidc doesn't #756
-
|
Hi all, I try to set up a small amound of domains behind an authentication. I usually working as developer with coding and only less with with infrastructure. So unfortunatly this is that's why I'm not so good at it. I would like to set up the following setup: different subdomains for different purpose:
All (sub-)domains are setup with an working SSL certificate (in the 000-default.conf of the apache configuration) and are only accessible with https. All subdomains routed with an vhost configuration in I would like to use FusionAuth as an idp and OAuth2 provider to secure all sub-domains. Behinde the other sub-domain (app2.my-domain.com) is a third party tool (listen at http://locahost:5421) without an authentication / login function. Because of this I try to use the mod_auth_openidc module in the Apache2 vhost-configuration to secure this sub-domain. Currenty I have this vhost file: The current configuration do:
I have tried to find the failture for the the Error I tired many different configurations in the last days but nothing will work.
Thanks for the Help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I have found the a solution for this problem after several debugging and minimal examples trial-and-error sessions. The configuration in apache vhost file was correct and worked well. But after login on the authentication server the apache tries to validate the returned JWT, but this fails. Because there was result in the JWK Endpoint to validate the key within the JWT. I solved the problem with:
After the few points the login process and the redirect works very well. That was the source that give my the final for my solution: I hope could help others with my answer. Zero |
Beta Was this translation helpful? Give feedback.
I have found the a solution for this problem after several debugging and minimal examples trial-and-error sessions.
The configuration in apache vhost file was correct and worked well. But after login on the authentication server the apache tries to validate the returned JWT, but this fails. Because there was result in the JWK Endpoint to validate the key within the JWT.
I solved the problem with: