Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 14

6apxatCurtisOdenericgillettelf349141590 +10 guests

Single sign on for Vanilla 1

Any chance of this addon seeing the light of day or should I write it?

Comments

  • Posts: 812
    (kind of off topic, but) you know php and are able to create addons?
  • Posts: 2,058
    Why bother? Wait 2 months and you can upgrade to Vanilla 2 and have it there. If you really want it though, yes, you'll probably need to bake it yourself.

    Vanilla developer [GitHub, Twitter]

  • Posts: 59
    I coded it myself in the end. It's relatively simple thanks to some good modular code from @Mark and the team.
  • Posts: 4,883
    Care to share your code?
  • Posts: 59
    Sorry, I just saw your comment.

    Yes, I can but I need to tweak it a little so that the cookie is referenced to in the database and not on the local machine. We have two web servers serving vanilla from one DB and login does not work well if you are load balanced between servers.

    To be honest, the code is so well designed that it was a pleasure to hack it. Well documented, easy to follow and overall just good. @Mark, thank you!
  • Posts: 4,883
    Awesome!
  • Posts: 59
    talking about that one.. What would be the best way to do this?

    Say, I have X vanilla servers all pooling data from a database server (technically, a cluster but as far as Vanilla knows, one IP). What would be the best way to hold sessions? Update the database to have another field in LUM_Users or something else?

    Ideas welcome.
  • Posts: 1,880
    For the DbSession addon, I create a table for it. By default it uses the same DB, but it let the user set an alternative one for it.
Sign In or Register to comment.