Skip to content

Start the authentication fallback over once every scheme has failed - #213

Merged
bertysentry merged 1 commit into
mainfrom
212-a-client-gets-stuck-forever-on-a-failing-authentication-method
Oct 26, 2026
Merged

bertysentry merged 1 commit into
mainfrom
212-a-client-gets-stuck-forever-on-a-failing-authentication-method

Conversation

@bertysentry

Copy link
Copy Markdown
Contributor

Fixes #212.

With an ordered fallback list such as (KERBEROS, NTLM) or (NTLM, BASIC), FallbackAuthScheme kept its start index on the last scheme once that one was rejected too. Every later request then only retried that scheme: a client that had moved from NTLM to a disabled Basic, or from Kerberos to a blocked NTLM, failed for the rest of its life until it was recreated, even after a transient failure of the first scheme (unreachable KDC, host restarting) was over.

advance() and the all-failed path of authenticate() now rewind to the first scheme, so the next request starts over. Retrying the last successful scheme first on reconnect is unchanged.

  • Two regression tests in FallbackAuthSchemeTest, one per rewind path.
  • One sentence in authentication.md under "Ordered fallback".
  • A 3.2.00 changelog entry.

mvn clean verify site passes with checkstyle, PMD and SpotBugs clean. Not tried against a real host with Basic disabled.

🤖 Generated with Claude Code

Fixes #212. With an ordered fallback list, FallbackAuthScheme kept its
start index on the last scheme once that one was rejected too, so every
later request only retried it: a client that had moved from NTLM to a
disabled Basic, or from Kerberos to a blocked NTLM, failed for good until
it was recreated. advance() and the all-failed path of authenticate() now
rewind to the first scheme.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@bertysentry bertysentry linked an issue Oct 26, 2026 that may be closed by this pull request
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T13:41:19.582840Z d96a13e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@bertysentry
bertysentry merged commit 6bcef1c into main Oct 26, 2026
5 checks passed
@bertysentry
bertysentry deleted the 212-a-client-gets-stuck-forever-on-a-failing-authentication-method branch October 26, 2026 15:31
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.

A client gets stuck forever on a failing authentication method

1 participant