[LRUG] Omniauth but require Devise login

Kevin Fullerton lrug at kenwa-solutions.co.uk
Thu Aug 1 05:00:57 PDT 2013


Hi,

Long-time lurker whose Google-fu appears to be weak ... I'm working on 
a new side-project with Rails4, I want users to be able to register 
using an e-mail+password which I've got Devise doing well, however I 
want them to then be able to link Facebook + Instagram accounts to their 
account - I can get this working, but wondering what the best way is to 
disallow access to the /auth/:provider routes if the user isn't 
currently logged-in?

Apologies if this is an easy one, I just can't work it out without 
resorting to monkey-patching the Omniauth route builder :(

Cheers!

--

Kevin Fullerton



More information about the Chat mailing list