IONOS(user_oidc): downgrade to v8.6.1 to restore LFv2 bearer auth (HDNEXT-1914) - #260
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
user_oidc8.7.0 introducedsetSessionUser()calls insidegetCurrentUserId()(theIApacheBackendcallback, PR nextcloud/user_oidc#1376). This prevents NC core'sloginWithExternalBackend()from writing anoc_authtokensession row — soAppPasswordController::getAppPassword()throwsInvalidTokenException→ 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_oidcsubmodule 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_migrationsstays fully consistent after the downgrade. No manual schema rollback needed.Testing
loginWithExternalBackend()completes, noInvalidTokenExceptionCloses HDNEXT-1914