Closed poVoq closed 7 years ago
There isn't at this point. But the process would be always this one:
\OC
class I believe?Ah, I see. Actually Nextcloud does have a build in user-provisioning API, see: https://docs.nextcloud.com/server/12/admin_manual/configuration_user/user_provisioning_api.html Maybe something to support out of the box given how popular Matrix and Nextcloud are in the same user-group?
Edit: never mind, that seems to be for editing users and groups.
But is there going to be OAuth2 login support at some point? Nextcloud12 seems to have a partial implementation of that.
More of a general comment here: this specific piece of code is only really meant to be a "dumb" bridge to another authentication mechanism.
If there was to be a direct Nextcloud integration, it would only be in mxisd. But my impression is also that people using Nextcloud and Matrix would have a LDAP-like backend. At least I do for my own users.
For Oauth2, it requires support in the Matrix client then some bit of hacking to pass it to the backend... synapse and Riot are limited in that regards and is something I would rather do in another implementation of client/HS.
So to sum it up: this piece of code should stay as dumb as possible.
This seems really interesting. As you already mention Nextcloud in the readme, is there somewhere a more detailed guide how this could be made to work?