Rails [分享] 使用 User model 实现 OmniAuth 多 provider 和 Identity 登录

merlinran · April 03, 2013 · 2292 hits

OmniAuth Identity 利用和 OmniAuth 相同的机制,很方便,但需要增加一个 Identity 表,而且和 User 表有重复。 这里有篇文章,介绍怎么把 Identity 放到 User model 里。 http://bernardi.me/2012/09/using-multiple-omniauth-providers-with-omniauth-identity-on-the-main-user-model/

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.