jersey icon indicating copy to clipboard operation
jersey copied to clipboard

Add two missing configuration for Apache - DefaultAuthSchemeRegistry …

Open nddipiazza opened this issue 5 years ago • 4 comments

Add two missing configuration for Apache HTTP client properties:

builder.setDefaultAuthSchemeRegistry
builder.setRedirectStrategy

These are blockers for several use cases.

In particular, without the ability to update the default auth scheme registry, you cannot do Spnego AuthScheme.

nddipiazza avatar Jan 16 '21 03:01 nddipiazza

There is a valid ECA on file for [email protected]. But check fails for some reason.

senivam avatar Jan 18 '21 06:01 senivam

@senivam I am trying to add a unit test, but the master branch will not compile. Is there some quick contributing eclipse/intellij setup guide so i can get a workspace set up?

nddipiazza avatar Jan 19 '21 02:01 nddipiazza

@nddipiazza if you previously compiled the branch (using JDK 8 for example) and now it does not pass again you can try to remove all target/* folders and compile it again using same JDK. If this does not help it's possible to clean local .m2/repository/org/glassfish/jersey folder and build jersey again.

BTW, we have another approach of supplying parameters which are not explicitly indicated in properties to Apache connector which is manual implementing of ApacheHttpClientBuilderConfigurator SPI interface and passing all required properties via custom HttpClientBuilder configure(HttpClientBuilder httpClientBuilder); method. Please consider which approach suits better you needs - direct properties config of SPI interface extension.

senivam avatar Jan 20 '21 06:01 senivam

Yep the .m2 repositories thing fixed it. Weird.

nddipiazza avatar Jan 20 '21 21:01 nddipiazza