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

Allow for specifying the preferred auth schemes in http requests. #494

Open
wants to merge 4 commits into
base: 3.x
Choose a base branch
from

Conversation

fourtytoo
Copy link

In my specific case that patch allowed me to work around an annoying warning at each and every http request that crowded the log file:

[2019-06-05T12:40:01,590][WARN ][o.a.h.i.a.HttpAuthenticator] NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)

The server accepts NEGOTIATE and NTLM but NEGOTIATE fails.

The patch lets me do requests like this:

(get "http://whatever-ms-server.com/some/page.aspx"
     {:ntlm-auth ["user" "password"]
      :auth-schemes ["NTLM"]})

The :auth-schemes parameter avoids the NEGOTIATE attempt.

@dakrone
Copy link
Owner

dakrone commented Jun 10, 2019

@fourtytoo would you mind adding a blurb to the README including this option? Otherwise I think it'd probably get lost without documentation.

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

Successfully merging this pull request may close these issues.

2 participants