user_external icon indicating copy to clipboard operation
user_external copied to clipboard

Breaking changes for Nextcloud 32

Open susnux opened this issue 9 months ago • 6 comments

In Nextcloud 32 the login chain was changed, this means to allow login by email you need to adjust your code. This means checkPassword of the user backend will no longer receive the user id when logged in by email but the email directly.

So to allow to login by email you need to fetch the matching user id of that email manually in your code. You can have a look at the local backend on how to do this: https://github.com/nextcloud/server/blob/3c4feff028ab87b57a29e5771cde8ba6c5b7e4b0/lib/private/User/Database.php

See also: https://github.com/nextcloud/server/pull/47686

susnux avatar Mar 04 '25 18:03 susnux

Can you suggest the patch?

VVD avatar Nov 01 '25 14:11 VVD

So the addon is not working with NC-32 right now, is that correct?

stefangweichinger avatar Nov 03 '25 07:11 stefangweichinger

Dear developers: Please share some information. I have a customer asking ... waiting for NC-32 etc thanks for your work (and infos!)

EDIT: In my case it's IMAP ...

stefangweichinger avatar Nov 04 '25 16:11 stefangweichinger

I set up an extra NC-clone for testing this addon with NC-32 and it works (with the release from gh, not from the NC-app-store). While it's nice to see it working it leaves me uncertain how to proceed, given this issue etc

stefangweichinger avatar Nov 10 '25 17:11 stefangweichinger

@stefangweichinger I have been looking into alternatives and have had success with OIDC, which my email system and other services also support. I am using the OpenID Connect app to integrate with Nextcloud. I am using keycloak for authentication.

beanjammin avatar Nov 17 '25 20:11 beanjammin

thanks @beanjammin . In this case I have to either use (Samba) AD or the database behind postfix and dovecot (which I use right now by using this nc addon). I will research OIDC etc

stefangweichinger avatar Nov 18 '25 06:11 stefangweichinger