Skip to content

N°9954 - Login-basic incompatible with OAuth2 server - #1077

Merged
eespie merged 3 commits into
support/3.3from
issue/9954_-_Login-basic
Oct 13, 2026
Merged

eespie merged 3 commits into
support/3.3from
issue/9954_-_Login-basic

Conversation

@eespie

@eespie eespie commented Oct 13, 2026

Copy link
Copy Markdown
Member

Rebased on support/3.3 from an old branch, this is related to #1018
only for convenience of branch management

Copilot AI balanced review requested due to automatic review settings October 13, 2026 08:17
@CombodoApplicationsAccount CombodoApplicationsAccount added the internal Work made by Combodo label Oct 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Nullable credentials, case-sensitive scheme matching, and colon-containing passwords remain incorrectly handled.

1 open finding
What changed in this PR

Refines Basic-auth detection to avoid claiming OAuth2 Bearer requests.

Changes:

  • Validates Basic authorization headers before selecting login mode.
  • Adds mode-detection tests for supported credential sources and Bearer tokens.
File Description
application/​loginbasic.class.inc.php Refactors Basic credential parsing and detection.
tests/​php-unit-tests/​unitary-tests/​application/​LoginFSM/​LoginBasicTest.php Adds authentication mode tests.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread application/loginbasic.class.inc.php
@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Critical impact] Refactors HTTP basic authentication detection and parsing.

Fix the case-sensitive Basic scheme check before merging; it breaks login for valid clients.

Findings

  1. P1 Valid Basic headers get rejected ▶

Summary

The PR makes Basic login detection read credentials before selecting a login mode.

  • OAuth bearer headers no longer select Basic login.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Incoming credentials] --> B[Read authorization header or PHP credentials]
  B --> C{Recognized Basic credentials?}
  C -->|Yes| D[Select Basic login]
  C -->|No| E[Leave mode selection to other login paths]
  D --> F[Check username and password]
Loading

Reviews (1) · Last reviewed commit: "N°9954 - Login-basic incompatible with O..." · Reviewed by Greptile

Comment thread application/loginbasic.class.inc.php Outdated
@eespie
eespie changed the base branch from develop to support/3.3 October 13, 2026 08:21
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@eespie
eespie merged commit 271ee5f into support/3.3 Oct 13, 2026
@eespie
eespie deleted the issue/9954_-_Login-basic branch October 13, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Work made by Combodo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants