Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthordnyce
    • CommentTimeJun 29th 2008 edited
     # 1
    Hello Vanilla Users,

    For the past week I have been trying to integrate Vanilla with my external application that is using Codeigniter as the backend. Making use of Mark's integration with Wordpress guide, I was able to link the my databases/user tables so that my main application's user table would be the primary table. I intend to use my main application's sign up/registration forms and I've already made use of my main application's login/logout form, therefore I should not need to make use of people.php. Here is the main question:

    How do I let Vanilla know that I'm logged in?

    Once in, how do I let Vanilla know that I am a member/admin? In other words, how do I get the settings/accounts tabs to appear when making use of an external authentication system without the people.php file?

    Cmon.... Someone wants this Vanilla Cookie. :-)

    Mark's integration with wordpress - http://lussumo.com/docs/doku.php?id=vanilla:integration:wordpress
  1.  # 2
    I guess all you need to do is set the same cookie/session information which Vanilla uses as part of your own login method. Off the top of my head I think there's an AuthenticateUser function in the people libraries which deals with this but I'm not 100% sure and I cant check at the moment. Try and hunt it out and let me know how you get on.
    • CommentAuthordnyce
    • CommentTimeJun 29th 2008
     # 3
    Well that is similar to what Mark has done. However, how do I get the process to start/fire.

    This should be so simple, but I can't for the life of me find the magic trigger that Vanilla uses to tell the whole system that:

    a) The user is logged in
    b) The user is an admin

    I've checked the people library again and again but all roads lead to neverland. There has to be one simple variable that acts as an on/off switch for the sessions and in turn, domino effect style, it turns on/off the admin/basic member session!?

    I can already see that Vanilla and I will have a great love/hate relationship. :-)
    • CommentAuthorfysicsluvr
    • CommentTimeJun 30th 2008
     # 4
    Does your external database integration also include the columns of the user table that handle role information? it's almost like vanilla isn't getting that information.
    • CommentAuthordnyce
    • CommentTimeJun 30th 2008
     # 5
    Yup it does.

    The user table in my external app is well aware of Vanilla's table/information. Checking how passwords are stored, and it appears that the external app and Vanilla are different. However, I have removed the calls to password in the Vanilla Authenticator class and am relying solely on id information. This should be fine as all of the validation will happen in the external app.

    I am determined to find the answer here as it seems so obvious.
    • CommentAuthordnyce
    • CommentTimeJul 3rd 2008
     # 6
    Figured it out!! :-)

    It was so simple after I actually read through all the documentation I had at my disposal, Check out this post for a wiki/ write up.

    Vanilla Integration with Codeigniter (CL Auth)
Add your comments
    Username Password
  • Format comments as