Connecting WordPress with Nextcloud
-
Does anyone has an idea on how to connect WordPress users with Nextcloud?
I mean, when a user creates an account on wordpress it should also create a user in nextcloud.
I don't want to use cloudron ldap because I plan to do this in a free 2 app system.
-
@cyberfreakde AFAIK, the way to do that easily and for free would be the other way around - NextCloud can act as a sign-in provider for WordPress with freely available plugins last I checked. The other way around means WP needs to use a custom OAuth2 setup against NextCloud, which while possible, has not been something I've seen free solutions for to date.
-
@jimcavoli My plan was to show WordPress as a homepage because you only see the sign-in page on Nextcloud which is not so customizable. What sense does it make if the user signs up at Nextcloud first?
-
@cyberfreakde Perhaps https://wordpress.org/plugins/miniorange-oauth-20-server/ gets you the WP as an IdP side of things, but the OIDC plugin for NextCloud is unmaintained and about 9 major versions out of date for support. Without an obvious way to get NextCloud to look at the WP user store one way or the other, I'm not sure what options you've got for the WP -> NC direction connection.
-
@jimcavoli I tried it already but it's free only for the first 10 users.
However, I found this Nextcloud SQL user authentication: https://github.com/nextcloud/user_sql
Now I just need to find out where I can get the Cloudron WordPress database information , do you know how to get those? In the docs I didn't find much. -
An idea might be that if there is a free OAuth provider out there, then you can connect both WordPress and Nextcloud to that instead? For example, https://auth0.com/pricing/ has 7000 users in free plan.
-
@cyberfreakde You can read them out of the terminal for the app - they're in the environment.
env | sort | grep CLOUDRON
will show you all the Cloudron variables. They technically could change from time to time though, so @girish 's suggestion of pointing both at a third-party authenticator is your better option...or Cloudron LDAP, of course