How to make Monologue work with current authentication system?

24 views
Skip to first unread message

Alxs

unread,
Jun 29, 2015, 3:53:59 AM6/29/15
to monolo...@googlegroups.com
Hi,

Is there any documentation or tutorial available explaining how to integrate Monologue with a host application's pre-existing authentication system?

Thanks for any help.

Regards,

Alxs

Jean-Philippe Boily

unread,
Jun 30, 2015, 10:17:50 PM6/30/15
to Alxs, monolo...@googlegroups.com
I don't think so.



--
You received this message because you are subscribed to the Google Groups "Monologue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to monologue-rb...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alxs

unread,
Jul 1, 2015, 4:40:27 AM7/1/15
to monolo...@googlegroups.com, lex.h...@gmail.com
Hi again,

So two separate logins are unavoidable?

Jean-Philippe Boily

unread,
Jul 1, 2015, 7:13:23 AM7/1/15
to Alxs, monolo...@googlegroups.com, lex.h...@gmail.com
I'm not entirely sure, but there is no doc AFAIK. That said Monologue is quite simple so it might be easy to change that for your needs.

ja...@tinkerbox.com.sg

unread,
May 31, 2016, 1:44:51 PM5/31/16
to Monologue
It's a bit late, but I just got started with Monologue (so far so good!).

You need to monkey patch the Monologue::User class to use your existing users (or whatever you call it) table. This is covered very briefly in the following:

https://gist.github.com/jipiboily/776d907fc932640ac59a

However, you will need to make sure that your users table has name and password_digest fields, which is what the Monologue::User model expects.

There are a few other caveats that I encountered, such as having to store the monologue_user_id in session manually, like so:

session[:monologue_user_id] = session[:user_id]

Hope that helps!

Reply all
Reply to author
Forward
0 new messages