mitre / mitre/HTTP-Proxy-Servlet

HttpClientContext support for 'Preemptive authentication'

Open
#44 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.5k
Forks
557
PR merge metrics
No merged PRs in 30d

Description

Hi,

Currently, ProxyServlet executing request like below:

proxyResponse = proxyClient.execute(getTargetHost(servletRequest), proxyRequest);

Adding support for HttpClientContext (or, via some overriden method) will allow Preemptive authentication support. Ex:

proxyResponse = proxyClient.execute(getTargetHost(servletRequest), proxyRequest, context);

or

proxyResponse = proxyClient.execute(getTargetHost(servletRequest), proxyRequest, getClientContext());

What do you think?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the ProxyServlet request execution call shown in the issue and inspect how the proxy client is configured and invoked. Determine the appropriate context or override extension point for callers, then verify that preemptive authentication can be supplied without changing existing proxy behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.