I am co-founder of Active Collab (https://activecollab.com) and we're looking for solution for community part of our website. The system i was referring to is custom made PHP app that handles all our accounts and app purchases.
Basically, we have our database of users and our app has Rest API we would use when someone want's to login on our installation of flarum and that would be sole way of authenticating. If you could nudge me in right direction i would greatly appreciate it.