milton2 icon indicating copy to clipboard operation
milton2 copied to clipboard

milton-client: Preemptive digest auth is broken

Open almson opened this issue 2 years ago • 1 comments

The PreemptiveAuthInterceptor doesn't work correctly because it is insert at the beginning, before authState.getAuthScheme() is set by another intercepter. One solution seems to set it at both the beginning and the end.

Host.java:236

    client.addRequestInterceptor(interceptor, 0);

should be

    client.addRequestInterceptor(interceptor, 0);
    client.addRequestInterceptor(interceptor);

almson avatar Oct 11 '23 11:10 almson

Hey @almson. Thanks, we will take a look.

ophiuhus avatar Oct 11 '23 11:10 ophiuhus