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

Integration within an application

Discussion in 'XenForo Pre-Sales Questions' started by Morhaus, Jun 20, 2013.

  1. Morhaus

    Morhaus Member

    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: Jun 20, 2013
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    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. Morhaus

    Morhaus Member

    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?
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    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.
     
  5. TsuChi

    TsuChi Member

  6. Morhaus

    Morhaus Member

    @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.
     
  7. Jeremy

    Jeremy XenForo Moderator Staff Member

    The development questions forum is a good resource, and if you ask questions, you'll get help.
     

Share This Page