Skip to content

Refuse API password logins when only OIDC login is allowed - #413

Merged
mraible merged 1 commit into
masterfrom
api-login-follows-auth-method
Dec 3, 2026
Merged

mraible merged 1 commit into
masterfrom
api-login-follows-auth-method

Conversation

@mraible

@mraible mraible commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

With authentication.method=oidc, the login form refuses password logins, but XML-RPC and AtomPub BASIC authentication still check the account's password.

  • Both now refuse password logins in that mode, as the form does, so neither API can be used on an oidc-only site.
  • With db-oidc nothing changes. Both APIs are off by default.
  • BaseAPIHandlerTest and RollerAtomHandlerTest cover the refusal.

With authentication.method=oidc, the login form refuses password logins, but XML-RPC and AtomPub BASIC authentication still checked the account's password. They now refuse too, as the form does. With db-oidc, nothing changes.

BaseAPIHandlerTest and RollerAtomHandlerTest cover the refusal.
@mraible mraible added the 7.0.0 label Dec 3, 2026

@snoopdave snoopdave 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.

LGTM — consistently refuses XML-RPC and AtomPub Basic password logins when authentication.method=oidc while keeping db-oidc unchanged, with unit tests for both handlers.

@mraible
mraible merged commit f0c1da8 into master Dec 3, 2026
9 checks passed
@mraible
mraible deleted the api-login-follows-auth-method branch December 3, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants