[rails4 branch] omniauth config

33 views
Skip to first unread message

jsh

unread,
Mar 11, 2014, 8:33:02 PM3/11/14
to communi...@googlegroups.com
getting : {"error":{"message":"This authorization code has been used.","type":"OAuthException","code":100}} when trying to login with facebook.  

but by skipping omniauth.rb, it works again.

wondering what's changed in rails4 branch?

Bruno Bornsztein

unread,
Mar 12, 2014, 11:44:16 AM3/12/14
to communi...@googlegroups.com
I think the README is outdated here. In that, it says you need to inculde an omniauth.rb file to initialize your social network accounts, but if you look at engine.rb (https://github.com/bborn/communityengine/blob/rails4/lib/community_engine/engine.rb#L42) you can see that CE automatically adds the middleware for you if you set the `configatron.auth_providers` hash.




--
You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to communityengi...@googlegroups.com.
To post to this group, send email to communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/communityengine.
For more options, visit https://groups.google.com/d/optout.

Joshua

unread,
Mar 12, 2014, 2:40:54 PM3/12/14
to communi...@googlegroups.com
ah.. thanks for the clarification!
Reply all
Reply to author
Forward
0 new messages