<div>
                    I would generally put the authenticate_user filter in my Application Controller, then skip as needed. I'm not sure, but I'd guess that if you do this Omniauth would then need a current_user to process anything.
                </div>
                <div><div><br></div><div>--</div><div>Tommy Palmer</div><div>http://tommyp.org</div><div>@tommypalm</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Thursday, 1 August 2013 at 13:59, brendan murphy wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div><br></div><div>We do something like that at <a href="http://enthuse.me">enthuse.me</a>, for the providers that require Oauth, but for content gathering only, not sign in.</div><div><br></div><div>Keeping your AuthenticationController for Devise Oauth if fine, just provide some business logic that checks there is a current_user or redirect before building your Authentication requirement from the provider.</div><div><br></div><div>then just limit where the paths are provided.</div><div><br></div><div>Best</div><div><br></div><div>Brendan</div><div><br></div><div><br></div><div><br></div><div><br></div><div>On 1 Aug 2013, at 13:00, Kevin Fullerton <<a href="mailto:lrug@kenwa-solutions.co.uk">lrug@kenwa-solutions.co.uk</a>> wrote:</div><div><br></div><blockquote type="cite"><div><div>Hi,</div><div><br></div><div>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?</div><div><br></div><div>Apologies if this is an easy one, I just can't work it out without resorting to monkey-patching the Omniauth route builder :(</div><div><br></div><div>Cheers!</div><div><br></div><div>--</div><div><br></div><div>Kevin Fullerton</div><div>_______________________________________________</div><div>Chat mailing list</div><div><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a></div><div><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a></div></div></blockquote><div><br></div><div>_______________________________________________</div><div>Chat mailing list</div><div><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a></div><div><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>