RoR: Integrating Devise and OmniAuth / Devise と OmniAuth で認証実現 (オリジナルドキュメントのススメw)
To implement login with an original account, facebook account, and Twitter account for my RoR web app, I decided to use Devise and OmniAuth.
At first, I neglected to read original documents on github and followed brief blog entries ... then encountered many errors.
I recommend you to read following documents even they look complicated. More haste, less speed ;)
- GitHub - plataformatec/devise: Flexible authentication solution for Rails with Warden.
- OmniAuth: Overview · plataformatec/devise Wiki · GitHub
To customize Divise setting, the following posts on asceecast was helpful:
- http://asciicasts.com/episodes/210-customizing-devise
- http://ja.asciicasts.com/episodes/210-customizing-devise(Japanese)
I made a bare app :) You can pull it from github:
GitHub - akipponn/RoR-bare-app-with-auth-using-Devise-2.0-and-OmniAuth-1.1.0: A RoR bare app with auth using Devise 2.0 and OmniAuth 1.1.0
Happy coding!
# I'll integrate Devise to a system which supports OmniAuth already and write a blog post about it later :)
RailsによるアジャイルWebアプリケーション開発 第4版
- 作者: Sam Ruby,Dave Thomas,David Heinemeier Hansson,前田修吾
- 出版社/メーカー: オーム社
- 発売日: 2011/12/01
- メディア: 単行本(ソフトカバー)
- 購入: 12人 クリック: 206回
- この商品を含むブログ (40件) を見る
Coders at Work プログラミングの技をめぐる探求
- 作者: Peter Seibel,青木靖
- 出版社/メーカー: オーム社
- 発売日: 2011/05/25
- メディア: 単行本(ソフトカバー)
- 購入: 11人 クリック: 360回
- この商品を含むブログ (36件) を見る