Merge pull request #821 from cbcoutinho/fix/app-password-loginname-runtime-auth

fix(auth): authenticate stored app passwords with loginName, not UID
This commit is contained in:
Chris Coutinho
2026-05-31 22:17:34 +02:00
committed by GitHub
9 changed files with 340 additions and 25 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ async def provision_app_password(request: Request) -> JSONResponse:
# Parse optional scopes and the Nextcloud loginName from the request body
# up front. Nextcloud authenticates app passwords against the *loginName*,
# which can differ from the UID — e.g. OIDC-provisioned users whose UID is
# their display name (UID "Chris Coutinho", loginName "chris@coutinho.io").
# their display name (UID "Ada Lovelace", loginName "ada@example.com").
# Use the loginName for the BasicAuth validation below, falling back to the
# path user_id for legacy callers that don't send one (where UID ==
# loginName).