Please upgrade here. These earlier versions are no longer being updated and have security issues.

Integrating the Authentication system and Login module to our website

We want to integrate the authentication system and login module with our website i.e. our website will be using the login/user registration module and post login authentication token of vanilla. We are currently using Version 2.3a1 and vanilla forum is installed in our sub domain.
We want a detailed tutorial/step by step guide about this integration.

Comments

  • hgtonighthgtonight ∞ · New Moderator

    Welcome to the community!

    Absolute easiest way is to request the login module via ajax and insert it where you want.

    Running 2.1+, you can get the contents of any module via the following URL: http://forum.example.com/module/moduleclassname

    You would probably want to load the memodule, the guestmodule, or the newdiscussionmodule.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

    peregrineUnderDog
  • @hgtonight Thank you dude! Being a noob, ;) I think; a lill bit explanation is required on 'How to'!
    Can you trouble yourself to visit our website http://www.indiantripadviser.com and lounge.indiantripadviser.com for a better understanding about what I exactly need.
    Thanks for your time!

  • hgtonighthgtonight ∞ · New Moderator

    Add this to your global.js file:

    jQuery(document).ready(function($) {
      $.ajax({
        url: "http://lounge.indiantripadviser.com/module/memodule",
        cache: false
      })
      .done(function( html ) {
        $( ".menuWrap" ).append( html );
      });
    });
    

    You will probably have to do something to get it to work since it is technically a cross domain request. Check out this page for more information: https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

    UnderDogShadowdareJerryJones
  • @hgtonight Thanks buddy.

    In-fact what we need is, We have several areas in our primary domain (http://www.indiantripadviser.com) where user MUST Log-in to perform several actions like; commenting and writing reviews, rating particular destination etc.
    So considering this situation, there are two options before us.
    1. Create a Registration & Log-in page for our primary domain (http://www.indiantripadviser.com).
    2. Integrate it with Vanilla's Registration & Log-in system.

    Since, Vanilla is installed in the sub-domain (http://lounge.indiantripadviser.com) and has already a registration & Log-in system, we think it will be a waste of time to write our own code for the above purpose. Right!?!

    Now, the question is, How to do this integration?
    We are using session to validate if user is logged in or not.

    I think, I have provided sufficient information regarding "What We Want To Achieve".

  • hgtonighthgtonight ∞ · New Moderator

    Is it custom software on the main domain, or are you running a cms?

    If you don't already have a system in place on your main domain to login and you want to use Vanilla. I highly suggest you wrap your application for the Garden framework (which is what Vanilla runs on). This way you only have one framework on both your custom frontend and your forum.

    If you already have a system in place on your frontend, you really want to look into a single sign on solution. Also called SSO, this will let your users authentication in one software "count" in the other.

    It really depends what software you have running on the main domain.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • basic api does jsonp for cross domain.

    grep is your friend.

    UnderDoghgtonight
  • Thanks @x00 .
    Well, @hgtonight We are using custom software and we are not using any kinda framework. And since the development work has almost finished, we can't afford to modify it to use Garden frame work. :(
    Now what to do? Please suggest.

  • well how are you goign to integrate the two if there is no adapter?

    If you want to use jsConnect you have to make your end work with jsConnect. There is documentation an examples of how to connect with jsConnect.

    http://blog.vanillaforums.com/help/implementing-jsconnect-single-signon-on/

    You would need some development experience.

    grep is your friend.

    UnderDog
Sign In or Register to comment.