add proxy setting to OIDCProviderMetadata resolve method
currently, resolve method doesn’t accept proxy setting and so does not work in industrial env where backend machin use proxy for security purpose
Comments (5)
-
-
reporter We are not allowed to do that for sécurity purpose java système proprety will impact all http call which mean that exception file should bé maintained and out sécurity team dont want to do it since thé best approach is to do it on code base since its scope is limited
-
Will a static
setProxy
method tocom.nimbusds.oauth2.sdk.http.HTTPRequest
work?All methods that end up creating an HTTP request go via this class. This will be limit the scope of necessary changes.
-
reporter proxy handling has already been added in the library for different case scenario for exemple
RemoteJWKSet
can acceptDefaultResourceRetriever
which allow us to go through proxy.
-
- changed status to resolved
Check out version 10.1 (2022-10-27)
* Adds HTTPRequestConfigurator interface. * Adds new static OIDCProviderMetadata.resolve(Issuer, HTTPRequestConfigurator) method. * Adds new static AuthorizationServerMetadata.resolve(Issuer, HTTPRequestConfigurator) method.
- Log in to comment
Have you tried setting the proxy via the Java sys props?
https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html