Skip to content
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

milton-client: Preemptive digest auth is broken #194

Open
almson opened this issue Oct 11, 2023 · 1 comment
Open

milton-client: Preemptive digest auth is broken #194

almson opened this issue Oct 11, 2023 · 1 comment

Comments

@almson
Copy link

almson commented Oct 11, 2023

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);
@ophiuhus
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants