Skip to content

IONOS(user_oidc): downgrade to v8.6.1 to restore LFv2 bearer auth (HDNEXT-1914) - #260

Merged
printminion-co merged 1 commit into
ionos-dev-v30from
mk/fix/ionos-dev-user-oidc-v8-6-1
Jun 9, 2026
Merged

IONOS(user_oidc): downgrade to v8.6.1 to restore LFv2 bearer auth (HDNEXT-1914)#260
printminion-co merged 1 commit into
ionos-dev-v30from
mk/fix/ionos-dev-user-oidc-v8-6-1

Conversation

@printminion-co

Copy link
Copy Markdown

Problem

user_oidc 8.7.0 introduced setSessionUser() calls inside getCurrentUserId() (the IApacheBackend callback, PR nextcloud/user_oidc#1376). This prevents NC core's loginWithExternalBackend() from writing an oc_authtoken session row — so AppPasswordController::getAppPassword() throws InvalidTokenException → 403 on every LFv2 poll to /ocs/v2.php/core/getapppassword.

The regression is present in all versions 8.7.0–8.10.1; there is no upstream fix.

Fix

Downgrade the apps-external/user_oidc submodule to v8.6.1 — the last release before the regression.

DB safety

No migrations were added between v8.6.1 and v8.10.1. All 14 migration files are identical in both versions; oc_migrations stays fully consistent after the downgrade. No manual schema rollback needed.

Testing

  • Deploy to QA, run full LFv2 flow: open NC login URL → authenticate via OIDC → verify client receives app password without 403
  • Check shard php-fpm logs: Bearer token validated by UserInfoValidator, loginWithExternalBackend() completes, no InvalidTokenException

Closes HDNEXT-1914

…NEXT-1914)

user_oidc 8.7.0 introduced setSessionUser() calls inside getCurrentUserId()
(IApacheBackend callback). This prevents NC core's loginWithExternalBackend()
from writing an oc_authtoken session row, so AppPasswordController returns 403
on every LFv2 getapppassword request. Regression present in 8.7.0–8.10.1.

v8.6.1 is the last release before the regression. DB-safe: no migrations were
added between v8.6.1 and v8.10.1 — all 14 migration files are identical.
@printminion-co
printminion-co merged commit 5a8528e into ionos-dev-v30 Jun 9, 2026
5 of 9 checks passed
@printminion-co
printminion-co deleted the mk/fix/ionos-dev-user-oidc-v8-6-1 branch June 9, 2026 14:15
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.

1 participant