Unable to use custom authentication (because of Invalid auth header in AuthenticationFilter)
Yann Le Moigne
ylemoigne at javatic.fr
Sun Apr 15 21:02:02 UTC 2018
Hello,
I tried to use the incubator/httpclient to use a rest API. This API use non standard header and a json web token for authentication. This API return 401 status when the token is missing.
Currently ( java version "10" 2018-03-20 ) the response processing end with :
```
java.io.IOException: Invalid auth header
at jdk.incubator.httpclient/jdk.incubator.http.AuthenticationFilter.lambda$response$1(AuthenticationFilter.java:211)
```
I did not find a way to disable this filter or workaround the issue, and the current code block my use case.
Is it intended ? (I believe that 401 is agnostic about the way the auth must be performed, but I’m not sure)
Any workaround to suggest ?
Regards,
Yann.
More information about the net-dev
mailing list