Skip to content

milton-client: Preemptive digest auth is broken #194

@almson

Description

@almson

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions