Hi,
I'm looking into the possibility to use Flarum for a website of ours. The current user database, however, is in Drupal.
Our plan right now is to try migrating the existing Drupal forum to Flarum. This would involve copying all the old posts and tagging them properly and also keeping the Flarum user table in sync with the Drupal one. The first I can do easily, the latter gives me some issues:
I briefly toyed with the idea of just doing a SQL copy/paste via cronjob since the authentication looked very similar - all the fields I want are there, and it looked like the password storage was similar (bcrypt? scrypt?); however the builtin auth handler doesn't know how to deal with that, I guess.
My second approach was looking into oauth (so people can oauth against drupal from the Forum), but I didn't find a Flarum plugin for that.
The third approach is looking into writing a SSO plugin, but I can't even find the place in the codebase where I would start with that. I'm pretty unfamiliar with PHP. ?
Additionally, this does not cover cornercases like re-using avatars, what to do with banned users, etc.
I'd much prefer the one-way sync from Drupal to Flarum with a automated script that runs every minute or so, because it seems to be the simplest with me; given the constraint that I need the users in database to display imported post data (flarum.posts.user_id)! But I realise that's a bit hacky, if a proper SSO solution could be devised.
Anyways, thanks for considering!