-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: OpenId Configuration http proxy support #3041
Comments
Hello, What i did change in openidStrategy Line 5 -> (-)
(+)
Line 70 -> (insert before Assuming PROXY is correctly configured in .env, but this should probably be the case if you have this issue. (+)
Using docker-compose, it seems we can override the file without needing to build the project so easy to try. For services -> api:
I will provide a pull request about this Regards |
What features would you like to see added?
Currently, the openid configuration does not allow to set a http proxy, nor the
PROXY
,HTTP_PROXY
,HTTPS_PROXY
environment variable is taken into account.This results in the error msg if no connection can be established directly:
{"level":"error","message":"[openidStrategy] outgoing request timed out after 3500ms","name":"RPError","stack":"RPError: outgoing request timed out after 3500ms\n at /app/node_modules/openid-client/lib/helpers/request.js:140:13\n at async Issuer.discover (/app/node_modules/openid-client/lib/issuer.js:143:22)\n at async setupOpenId (/app/api/strategies/openidStrategy.js:69:20)","timestamp":"2024-06-12T08:07:29.863Z"}
We would like to be able to configure a dedicated proxy for the OPENID integration or use the existing
PROXY
environment variable.A suitable solution could also be to have a new configuration variable
OPENID_PROXY=my-proxy:8080
to be independent of the otherPROXY
settings.More details
The code could be enhanced at openIdStrategy.js
Using the proposed configuration of the node-openid-client docs.
We did also consider the the solution of the discussion 1264, but we can not / do not want rebuild the project.
I would love to provide a Pull-request for this feature but I am not able to provide javascript code.
Which components are impacted by your request?
General, Other
Pictures
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: