Permalink
Browse files

work in progress on omniauth

  • Loading branch information...
1 parent c73a624 commit 769234a902064d43216244f6440e06b0d1d071e3 Joe Peck committed Dec 21, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 app/models/user.rb
  2. +3 −0 config/initializers/devise.rb
View
@@ -6,7 +6,7 @@ class User < ActiveRecord::Base
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
- :recoverable, :rememberable, :trackable, :validatable
+ :recoverable, :rememberable, :trackable, :validatable, :omniauthable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me, :nickname
@@ -14,6 +14,9 @@
# :mongoid (bson_ext recommended) by default. Other ORMs may be
# available as additional gems.
require 'devise/orm/active_record'
+
+ require "omniauth-github"
+ config.omniauth :facebook, "APP_ID", "APP_SECRET"
# ==> Configuration for any authentication mechanism
# Configure which keys are used when authenticating a user. The default is

0 comments on commit 769234a

Please sign in to comment.