• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Integration within an application

#1
Hey guys.
I'm working with NodeJS/Express to create a website for an organization. We're looking into options for community management and so far Xenforo is a clear win. Our goal is to completely integrate Xenforo into the application, which means users are shared and not duplicated.

I have some questions :
- is there already a solution out there (for example a server-side API) to handle such cases?
- is it possible to disable Xenforo's own registration and login system? the aim is to handle registrations and sessions remotely using Xenforo's database.

Ideally, Xenforo would issue HTTP requests to inform NodeJS an user has requested authentication/registration. But any of the two other solutions listed above would probably work as well.
 
Last edited:

Jeremy

Well-known member
#2
What you are asking isn't supported by the default system, and would be very difficult to implement. If you sync users, it may be quite a bit easier.
 
#3
I think syncing users would indeed do the job. That brings us to my second question though, I'd prefer to have user creation/deletion and login on the application side and communicate the changes to Xenforo using the database. Is it possible?
 

Jeremy

Well-known member
#4
Yes. You could write a PHP script that you send the necessary information to and utilize the XenForo structures to. You could then have the username/password be hashed and stored as your application would.
 
#6
@TsuChi I've looked at it and it does not seem to support session handling, which is a major part of what we need to achieve single login/log out.
@King Kovifor Are there resources on scripting for Xenforo? I'd prefer to use a robust solution rather than a tweaked one.