I am currently experiencing an issue with the integration of OAuth2 Proxy and Keycloak in my setup. I am using the OAuth2 Proxy to protect resources on my Nginx file server. When a user attempts to access a resource, they are redirected to the OAuth2 Proxy, which prompts them to sign in with Keycloak.
However, when the user clicks on "Sign in with Keycloak", they receive a 404 error. I suspect that this issue might be due to Keycloak not being reachable, or the URL that it is trying to access is not available.
Here is my OAuth2 Proxy configuration file:
[Include your OAuth2 Proxy configuration file here]
I have verified that the login_url is accessible by manually visiting the URL in a web browser, and it does not return a 404 error. I have also checked the logs of the OAuth2 Proxy, but I did not find any significant errors or warnings.
I suspect that the issue might be with the Keycloak configuration, specifically the realm setup, or the client ID and secret. However, I have checked these settings and they appear to be correct.
I would appreciate any assistance you could provide in resolving this issue. Please let me know if you need any additional information.
OAuth2 Proxy Config (
GitHub - oauth2-proxy/oauth2-proxy: A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers. ) :