devise_token_auth 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42915202b777017299c3ba2814a605596c20a7fb
4
- data.tar.gz: 58ad421a11398018bcfa82567d380129effa8d64
3
+ metadata.gz: fc7021fe44250029f78d71e63c69974cd4f27b5e
4
+ data.tar.gz: 5bddf76a0dea6fef4f9f42f54e60805068fd0d61
5
5
  SHA512:
6
- metadata.gz: 2d1fe403e0ec4ef93b56658280549a442604dfe9b0665f499a18abd6db759c728e5b099f3c742b22d9cd3364ae87dd718623f075efd63800a8cc98461b1cdbbf
7
- data.tar.gz: c35dad1c6b8d9239f68a0e705bcffbb07ff10ad9fb9c8413e482ba8154aeb1497a1d1d5d40102dc121561ec0cb589288008dd281cab9b1730d5e4281deea3e78
6
+ metadata.gz: dbbc6569f24e082e99b79afcb2ac7fbe6dc2466044c3ed33fec0127870d134b242a4ac8ad82465de9f000f2ee97d34a63e0eac8b0db9e1e9c5b729f6505d98d9
7
+ data.tar.gz: ba885282bf8318456c20cf47752afe250762b9cb58f56dc426b794cc2ef4d864d7bbac02c96ec4f84c17b80f13d79c78fd1c7bb925aa1a51396ffb8007e17af0
@@ -27,20 +27,15 @@ module DeviseTokenAuth
27
27
  email: auth_hash['info']['email'],
28
28
  }).first_or_initialize
29
29
 
30
- # set crazy password for new oauth users. this is only used to prevent
31
- # access via email sign-in.
32
- unless @user.id
33
- p = SecureRandom.urlsafe_base64(nil, false)
34
- @user.password = p
35
- @user.password_confirmation = p
36
- end
30
+ @token = SecureRandom.urlsafe_base64(nil, false)
37
31
 
38
32
  # sync user info with provider, update/generate auth token
39
33
  @user.update_attributes({
40
- nickname: auth_hash['info']['nickname'],
41
- name: auth_hash['info']['name'],
42
- image: auth_hash['info']['image'],
43
- auth_token: SecureRandom.urlsafe_base64(nil, false)
34
+ nickname: auth_hash['info']['nickname'],
35
+ name: auth_hash['info']['name'],
36
+ image: auth_hash['info']['image'],
37
+ password: @token,
38
+ password_confirmation: @token
44
39
  })
45
40
 
46
41
  # render user info to javascript postMessage communication window
@@ -19,7 +19,7 @@ module DeviseTokenAuth::Concerns::SetUserByToken
19
19
  # mitigate timing attacks by finding by uid instead of auth token
20
20
  @user = @current_user = uid && User.find_by_uid(uid)
21
21
 
22
- if @user && Devise.secure_compare(@user.auth_token, token)
22
+ if @user && @user.valid_password?(token)
23
23
  sign_in(@user, store: false)
24
24
  else
25
25
  @user = @current_user = nil
@@ -29,11 +29,13 @@ module DeviseTokenAuth::Concerns::SetUserByToken
29
29
  def update_auth_header
30
30
  if @user
31
31
  # update user's auth token (should happen on each request)
32
- @user.auth_token = SecureRandom.urlsafe_base64(nil, false)
32
+ token = SecureRandom.urlsafe_base64(nil, false)
33
+ @user.password = token
34
+ @user.password_confirmation = token
33
35
  @user.save!
34
36
 
35
37
  # update Authorization response header with new token
36
- response.headers["Authorization"] = "token=#{@user.auth_token} uid=#{@user.uid}"
38
+ response.headers["Authorization"] = "token=#{token} uid=#{@user.uid}"
37
39
  end
38
40
  end
39
41
  end
@@ -6,9 +6,18 @@ module DeviseTokenAuth
6
6
  @user = User.confirm_by_token(params[:confirmation_token])
7
7
  if @user
8
8
  sign_in @user
9
+
10
+ # generate new auth token
11
+ token = SecureRandom.urlsafe_base64(nil, false)
12
+
13
+ # set new token as user password
14
+ @user.password = token
15
+ @user.password_confirmation = token
16
+ @user.save
17
+
9
18
  redirect_to generate_url(@user.confirm_success_url, {
10
- token: @user.auth_token,
11
- email: @user.email
19
+ email: @user.email,
20
+ auth_token: token
12
21
  })
13
22
  else
14
23
  raise ActionController::RoutingError.new('Not Found')
data/app/models/user.rb CHANGED
@@ -3,4 +3,6 @@ class User < ActiveRecord::Base
3
3
  # :confirmable, :lockable, :timeoutable and :omniauthable
4
4
  devise :database_authenticatable, :registerable,
5
5
  :recoverable, :rememberable, :trackable, :validatable
6
+
7
+ attr_encryptor :auth_token, key: proc { Devise.secret_key }
6
8
  end
@@ -1,7 +1,7 @@
1
1
  message: "deliverCredentials",
2
2
  uid: "<%= @user.uid %>",
3
3
  email: "<%= @user.email %>",
4
- auth_token: "<%= @user.auth_token %>",
4
+ auth_token: "<%= @token %>",
5
5
  avatar_url: "<%= @user.image %>",
6
6
  nickname: "<%= @user.nickname %>",
7
7
  name: "<%= @user.name %>"
@@ -31,9 +31,6 @@ class DeviseTokenAuthCreateUsers < ActiveRecord::Migration
31
31
  # t.string :unlock_token # Only if unlock strategy is :email or :both
32
32
  # t.datetime :locked_at
33
33
 
34
- ## Token auth
35
- t.string :auth_token, :default => "", :null => false
36
-
37
34
  ## User Info
38
35
  t.string :name
39
36
  t.string :nickname
@@ -46,7 +43,6 @@ class DeviseTokenAuthCreateUsers < ActiveRecord::Migration
46
43
  t.timestamps
47
44
  end
48
45
 
49
- add_index :users, :auth_token
50
46
  add_index :users, :uid, :unique => true
51
47
  add_index :users, :email, :unique => true
52
48
  add_index :users, :reset_password_token, :unique => true
@@ -1,3 +1,3 @@
1
1
  module DeviseTokenAuth
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
Binary file
@@ -6739,3 +6739,543 @@ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
6739
6739
  Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 17:22:28 -0500
6740
6740
  Processing by TestController#members_only as HTML
6741
6741
  Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
6742
+
6743
+
6744
+ Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 17:48:53 -0500
6745
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6746
+
6747
+
6748
+ Started GET "/auth/github/callback?code=5827b6288fe72c27a36e&state=a199507958601eeed2513a9e5bee08ad549aea9c23f760af" for 127.0.0.1 at 2014-06-30 17:48:53 -0500
6749
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
6750
+ Parameters: {"code"=>"5827b6288fe72c27a36e", "state"=>"a199507958601eeed2513a9e5bee08ad549aea9c23f760af", "provider"=>"github"}
6751
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' AND "users"."provider" = 'github' AND "users"."email" = 'lynn.dylan.hurley+github@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
6752
+  (0.1ms) begin transaction
6753
+  (0.0ms) commit transaction
6754
+ Rendered /Users/lynnhurley/Code/Personal/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (1.1ms)
6755
+ Completed 200 OK in 24ms (Views: 6.1ms | ActiveRecord: 0.5ms)
6756
+
6757
+
6758
+ Started OPTIONS "/test/members_only" for 127.0.0.1 at 2014-06-30 17:48:59 -0500
6759
+
6760
+
6761
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 17:48:59 -0500
6762
+ Processing by TestController#members_only as HTML
6763
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
6764
+ Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
6765
+
6766
+
6767
+ Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 17:49:05 -0500
6768
+
6769
+
6770
+ Started GET "/auth/github/callback?code=ca5c6f0313631aca3758&state=4a5337fc596e86cc1bf270ba181f527119fa4d14f985da27" for 127.0.0.1 at 2014-06-30 17:49:06 -0500
6771
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
6772
+ Parameters: {"code"=>"ca5c6f0313631aca3758", "state"=>"4a5337fc596e86cc1bf270ba181f527119fa4d14f985da27", "provider"=>"github"}
6773
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' AND "users"."provider" = 'github' AND "users"."email" = 'lynn.dylan.hurley+github@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
6774
+  (0.1ms) begin transaction
6775
+  (0.0ms) commit transaction
6776
+ Rendered /Users/lynnhurley/Code/Personal/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (0.1ms)
6777
+ Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.4ms)
6778
+  (0.1ms) SELECT COUNT(*) FROM "users"
6779
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
6780
+
6781
+
6782
+ Started OPTIONS "/auth/validate_token" for 127.0.0.1 at 2014-06-30 18:06:39 -0500
6783
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6784
+
6785
+
6786
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-06-30 18:06:40 -0500
6787
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
6788
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
6789
+ Completed 401 Unauthorized in 83ms (Views: 0.3ms | ActiveRecord: 0.5ms)
6790
+
6791
+
6792
+ Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 18:06:43 -0500
6793
+
6794
+
6795
+ Started GET "/auth/github/callback?code=03f4025f5517b04e7b4f&state=98565236769976f7419d0bfb81a84075ad2ecb99f4452c33" for 127.0.0.1 at 2014-06-30 18:06:43 -0500
6796
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
6797
+ Parameters: {"code"=>"03f4025f5517b04e7b4f", "state"=>"98565236769976f7419d0bfb81a84075ad2ecb99f4452c33", "provider"=>"github"}
6798
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' AND "users"."provider" = 'github' AND "users"."email" = 'lynn.dylan.hurley+github@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
6799
+  (0.1ms) begin transaction
6800
+ Binary data inserted for `string` type on column `encrypted_password`
6801
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$bEkSd2o3AhOnx4vovaPawe07/ElSzRIPPW5za0aFTEs9k6RXMTEv."], ["updated_at", "2014-06-30 23:06:45.264627"]]
6802
+  (0.5ms) commit transaction
6803
+ Rendered /Users/lynnhurley/Code/Personal/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (1.4ms)
6804
+ Completed 200 OK in 81ms (Views: 6.5ms | ActiveRecord: 1.2ms)
6805
+
6806
+
6807
+ Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 18:07:35 -0500
6808
+
6809
+
6810
+ Started GET "/auth/github/callback?code=2b8c4bdc9d36e5899c95&state=56db0f463cfdee959ebe2f5b253667e006bd1782f3bff4a1" for 127.0.0.1 at 2014-06-30 18:07:35 -0500
6811
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
6812
+ Parameters: {"code"=>"2b8c4bdc9d36e5899c95", "state"=>"56db0f463cfdee959ebe2f5b253667e006bd1782f3bff4a1", "provider"=>"github"}
6813
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' AND "users"."provider" = 'github' AND "users"."email" = 'lynn.dylan.hurley+github@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
6814
+ Completed 500 Internal Server Error in 22ms
6815
+
6816
+ NameError (undefined local variable or method `token' for #<DeviseTokenAuth::AuthController:0x007fc4d9626740>):
6817
+ /Users/lynnhurley/Code/Personal/devise_token_auth/app/controllers/devise_token_auth/auth_controller.rb:44:in `omniauth_success'
6818
+ actionpack (4.1.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
6819
+ actionpack (4.1.2) lib/abstract_controller/base.rb:189:in `process_action'
6820
+ actionpack (4.1.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
6821
+ actionpack (4.1.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
6822
+ activesupport (4.1.2) lib/active_support/callbacks.rb:113:in `call'
6823
+ activesupport (4.1.2) lib/active_support/callbacks.rb:113:in `call'
6824
+ activesupport (4.1.2) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'
6825
+ activesupport (4.1.2) lib/active_support/callbacks.rb:166:in `call'
6826
+ activesupport (4.1.2) lib/active_support/callbacks.rb:166:in `block in halting'
6827
+ activesupport (4.1.2) lib/active_support/callbacks.rb:86:in `call'
6828
+ activesupport (4.1.2) lib/active_support/callbacks.rb:86:in `run_callbacks'
6829
+ actionpack (4.1.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
6830
+ actionpack (4.1.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
6831
+ actionpack (4.1.2) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
6832
+ activesupport (4.1.2) lib/active_support/notifications.rb:159:in `block in instrument'
6833
+ activesupport (4.1.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
6834
+ activesupport (4.1.2) lib/active_support/notifications.rb:159:in `instrument'
6835
+ actionpack (4.1.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
6836
+ actionpack (4.1.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
6837
+ activerecord (4.1.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
6838
+ actionpack (4.1.2) lib/abstract_controller/base.rb:136:in `process'
6839
+ actionview (4.1.2) lib/action_view/rendering.rb:30:in `process'
6840
+ actionpack (4.1.2) lib/action_controller/metal.rb:196:in `dispatch'
6841
+ actionpack (4.1.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
6842
+ actionpack (4.1.2) lib/action_controller/metal.rb:232:in `block in action'
6843
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:82:in `call'
6844
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
6845
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:50:in `call'
6846
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
6847
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `each'
6848
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `call'
6849
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:678:in `call'
6850
+ railties (4.1.2) lib/rails/engine.rb:514:in `call'
6851
+ railties (4.1.2) lib/rails/railtie.rb:194:in `public_send'
6852
+ railties (4.1.2) lib/rails/railtie.rb:194:in `method_missing'
6853
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
6854
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `each'
6855
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `call'
6856
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:678:in `call'
6857
+ omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'
6858
+ omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'
6859
+ omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'
6860
+ omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'
6861
+ omniauth (1.2.1) lib/omniauth/strategy.rb:404:in `call_app!'
6862
+ omniauth (1.2.1) lib/omniauth/strategy.rb:362:in `callback_phase'
6863
+ omniauth-oauth2 (1.1.2) lib/omniauth/strategies/oauth2.rb:77:in `callback_phase'
6864
+ omniauth (1.2.1) lib/omniauth/strategy.rb:227:in `callback_call'
6865
+ omniauth (1.2.1) lib/omniauth/strategy.rb:184:in `call!'
6866
+ omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'
6867
+ omniauth (1.2.1) lib/omniauth/builder.rb:59:in `call'
6868
+ rack-cors (0.2.9) lib/rack/cors.rb:54:in `call'
6869
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
6870
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
6871
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
6872
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
6873
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
6874
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
6875
+ actionpack (4.1.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
6876
+ actionpack (4.1.2) lib/action_dispatch/middleware/flash.rb:254:in `call'
6877
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
6878
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
6879
+ actionpack (4.1.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
6880
+ activerecord (4.1.2) lib/active_record/query_cache.rb:36:in `call'
6881
+ activerecord (4.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
6882
+ activerecord (4.1.2) lib/active_record/migration.rb:380:in `call'
6883
+ actionpack (4.1.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
6884
+ activesupport (4.1.2) lib/active_support/callbacks.rb:82:in `run_callbacks'
6885
+ actionpack (4.1.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
6886
+ actionpack (4.1.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
6887
+ actionpack (4.1.2) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
6888
+ actionpack (4.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
6889
+ actionpack (4.1.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
6890
+ railties (4.1.2) lib/rails/rack/logger.rb:38:in `call_app'
6891
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `block in call'
6892
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
6893
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
6894
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `tagged'
6895
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `call'
6896
+ actionpack (4.1.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
6897
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
6898
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
6899
+ activesupport (4.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
6900
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
6901
+ actionpack (4.1.2) lib/action_dispatch/middleware/static.rb:64:in `call'
6902
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
6903
+ railties (4.1.2) lib/rails/engine.rb:514:in `call'
6904
+ railties (4.1.2) lib/rails/application.rb:144:in `call'
6905
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
6906
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
6907
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
6908
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
6909
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
6910
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
6911
+
6912
+
6913
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
6914
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
6915
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
6916
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.7ms)
6917
+
6918
+
6919
+ Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 18:16:39 -0500
6920
+
6921
+
6922
+ Started GET "/auth/github/callback?code=7152827c3bbf64111289&state=2a15633ffd4b77e7c1a3c58c7a5855526d700df5c271d196" for 127.0.0.1 at 2014-06-30 18:16:40 -0500
6923
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
6924
+ Parameters: {"code"=>"7152827c3bbf64111289", "state"=>"2a15633ffd4b77e7c1a3c58c7a5855526d700df5c271d196", "provider"=>"github"}
6925
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' AND "users"."provider" = 'github' AND "users"."email" = 'lynn.dylan.hurley+github@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
6926
+ Completed 500 Internal Server Error in 7ms
6927
+
6928
+ NameError (undefined local variable or method `token' for #<DeviseTokenAuth::AuthController:0x007fc4de228a08>):
6929
+ /Users/lynnhurley/Code/Personal/devise_token_auth/app/controllers/devise_token_auth/auth_controller.rb:44:in `omniauth_success'
6930
+ actionpack (4.1.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
6931
+ actionpack (4.1.2) lib/abstract_controller/base.rb:189:in `process_action'
6932
+ actionpack (4.1.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
6933
+ actionpack (4.1.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
6934
+ activesupport (4.1.2) lib/active_support/callbacks.rb:113:in `call'
6935
+ activesupport (4.1.2) lib/active_support/callbacks.rb:113:in `call'
6936
+ activesupport (4.1.2) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'
6937
+ activesupport (4.1.2) lib/active_support/callbacks.rb:166:in `call'
6938
+ activesupport (4.1.2) lib/active_support/callbacks.rb:166:in `block in halting'
6939
+ activesupport (4.1.2) lib/active_support/callbacks.rb:86:in `call'
6940
+ activesupport (4.1.2) lib/active_support/callbacks.rb:86:in `run_callbacks'
6941
+ actionpack (4.1.2) lib/abstract_controller/callbacks.rb:19:in `process_action'
6942
+ actionpack (4.1.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
6943
+ actionpack (4.1.2) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
6944
+ activesupport (4.1.2) lib/active_support/notifications.rb:159:in `block in instrument'
6945
+ activesupport (4.1.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
6946
+ activesupport (4.1.2) lib/active_support/notifications.rb:159:in `instrument'
6947
+ actionpack (4.1.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
6948
+ actionpack (4.1.2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
6949
+ activerecord (4.1.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
6950
+ actionpack (4.1.2) lib/abstract_controller/base.rb:136:in `process'
6951
+ actionview (4.1.2) lib/action_view/rendering.rb:30:in `process'
6952
+ actionpack (4.1.2) lib/action_controller/metal.rb:196:in `dispatch'
6953
+ actionpack (4.1.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
6954
+ actionpack (4.1.2) lib/action_controller/metal.rb:232:in `block in action'
6955
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:82:in `call'
6956
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
6957
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:50:in `call'
6958
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
6959
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `each'
6960
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `call'
6961
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:678:in `call'
6962
+ railties (4.1.2) lib/rails/engine.rb:514:in `call'
6963
+ railties (4.1.2) lib/rails/railtie.rb:194:in `public_send'
6964
+ railties (4.1.2) lib/rails/railtie.rb:194:in `method_missing'
6965
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
6966
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `each'
6967
+ actionpack (4.1.2) lib/action_dispatch/journey/router.rb:59:in `call'
6968
+ actionpack (4.1.2) lib/action_dispatch/routing/route_set.rb:678:in `call'
6969
+ omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'
6970
+ omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'
6971
+ omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'
6972
+ omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'
6973
+ omniauth (1.2.1) lib/omniauth/strategy.rb:404:in `call_app!'
6974
+ omniauth (1.2.1) lib/omniauth/strategy.rb:362:in `callback_phase'
6975
+ omniauth-oauth2 (1.1.2) lib/omniauth/strategies/oauth2.rb:77:in `callback_phase'
6976
+ omniauth (1.2.1) lib/omniauth/strategy.rb:227:in `callback_call'
6977
+ omniauth (1.2.1) lib/omniauth/strategy.rb:184:in `call!'
6978
+ omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'
6979
+ omniauth (1.2.1) lib/omniauth/builder.rb:59:in `call'
6980
+ rack-cors (0.2.9) lib/rack/cors.rb:54:in `call'
6981
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
6982
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
6983
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
6984
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
6985
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
6986
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
6987
+ actionpack (4.1.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
6988
+ actionpack (4.1.2) lib/action_dispatch/middleware/flash.rb:254:in `call'
6989
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
6990
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
6991
+ actionpack (4.1.2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
6992
+ activerecord (4.1.2) lib/active_record/query_cache.rb:36:in `call'
6993
+ activerecord (4.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
6994
+ activerecord (4.1.2) lib/active_record/migration.rb:380:in `call'
6995
+ actionpack (4.1.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
6996
+ activesupport (4.1.2) lib/active_support/callbacks.rb:82:in `run_callbacks'
6997
+ actionpack (4.1.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
6998
+ actionpack (4.1.2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
6999
+ actionpack (4.1.2) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
7000
+ actionpack (4.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
7001
+ actionpack (4.1.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
7002
+ railties (4.1.2) lib/rails/rack/logger.rb:38:in `call_app'
7003
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `block in call'
7004
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
7005
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
7006
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `tagged'
7007
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `call'
7008
+ actionpack (4.1.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
7009
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
7010
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
7011
+ activesupport (4.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
7012
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
7013
+ actionpack (4.1.2) lib/action_dispatch/middleware/static.rb:64:in `call'
7014
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
7015
+ railties (4.1.2) lib/rails/engine.rb:514:in `call'
7016
+ railties (4.1.2) lib/rails/application.rb:144:in `call'
7017
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
7018
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
7019
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
7020
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
7021
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
7022
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
7023
+
7024
+
7025
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
7026
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
7027
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
7028
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.6ms)
7029
+
7030
+
7031
+ Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 18:17:19 -0500
7032
+
7033
+
7034
+ Started GET "/auth/github/callback?code=4d1570cebc84bd8c21ca&state=d5b71d9a76563bea4219c8aedf147c63f7a3629f80bd63b2" for 127.0.0.1 at 2014-06-30 18:17:20 -0500
7035
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
7036
+ Parameters: {"code"=>"4d1570cebc84bd8c21ca", "state"=>"d5b71d9a76563bea4219c8aedf147c63f7a3629f80bd63b2", "provider"=>"github"}
7037
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' AND "users"."provider" = 'github' AND "users"."email" = 'lynn.dylan.hurley+github@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
7038
+  (0.0ms) begin transaction
7039
+ Binary data inserted for `string` type on column `encrypted_password`
7040
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$0xXaXQ1bc3BdBUStSVCzf.KRDUsctU0SNFjvdb0Sfe2Kbgp34ew3."], ["updated_at", "2014-06-30 23:17:22.559320"]]
7041
+  (1.6ms) commit transaction
7042
+ Rendered /Users/lynnhurley/Code/Personal/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (0.5ms)
7043
+ Completed 200 OK in 75ms (Views: 2.1ms | ActiveRecord: 2.5ms)
7044
+
7045
+
7046
+ Started OPTIONS "/test/members_only" for 127.0.0.1 at 2014-06-30 18:17:28 -0500
7047
+
7048
+
7049
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 18:17:28 -0500
7050
+ Processing by TestController#members_only as HTML
7051
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7052
+  (0.1ms) begin transaction
7053
+ SQL (0.3ms) UPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:17:28.225455"], ["last_sign_in_at", "2014-06-30 22:22:20.889562"], ["sign_in_count", 51], ["updated_at", "2014-06-30 23:17:28.226405"]]
7054
+  (1.6ms) commit transaction
7055
+  (0.1ms) begin transaction
7056
+ Binary data inserted for `string` type on column `encrypted_password`
7057
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$Vx8yL8640xiVFsZXvm4y6eZeiQmLfoogxdobEayHf8Rgy7q3iys0S"], ["updated_at", "2014-06-30 23:17:28.290249"]]
7058
+  (0.6ms) commit transaction
7059
+ Completed 200 OK in 128ms (Views: 0.6ms | ActiveRecord: 3.2ms)
7060
+
7061
+
7062
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 18:17:30 -0500
7063
+ Processing by TestController#members_only as HTML
7064
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7065
+  (0.1ms) begin transaction
7066
+ SQL (0.2ms) UPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:17:31.023892"], ["last_sign_in_at", "2014-06-30 23:17:28.225455"], ["sign_in_count", 52], ["updated_at", "2014-06-30 23:17:31.024359"]]
7067
+  (1.8ms) commit transaction
7068
+  (0.1ms) begin transaction
7069
+ Binary data inserted for `string` type on column `encrypted_password`
7070
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$ny7UTlbqZ1E4vEyj6oIv8uQjvmfVoQEPIaqI9TH4Y02GeHYNL9yae"], ["updated_at", "2014-06-30 23:17:31.088044"]]
7071
+  (1.0ms) commit transaction
7072
+ Completed 200 OK in 127ms (Views: 0.5ms | ActiveRecord: 3.7ms)
7073
+
7074
+
7075
+ Started OPTIONS "/auth/validate_token" for 127.0.0.1 at 2014-06-30 18:17:34 -0500
7076
+
7077
+
7078
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-06-30 18:17:35 -0500
7079
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
7080
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7081
+  (0.1ms) begin transaction
7082
+ SQL (0.3ms) UPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:17:35.093002"], ["last_sign_in_at", "2014-06-30 23:17:31.023892"], ["sign_in_count", 53], ["updated_at", "2014-06-30 23:17:35.093610"]]
7083
+  (1.7ms) commit transaction
7084
+  (0.2ms) begin transaction
7085
+ Binary data inserted for `string` type on column `encrypted_password`
7086
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$VUbg9zJj/.BWZkOxhFYyKOM9.5r9j8XIKrfJGHG0h42.f4kxjRikm"], ["updated_at", "2014-06-30 23:17:35.160073"]]
7087
+  (0.6ms) commit transaction
7088
+ Completed 200 OK in 132ms (Views: 0.4ms | ActiveRecord: 3.3ms)
7089
+
7090
+
7091
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 18:17:37 -0500
7092
+ Processing by TestController#members_only as HTML
7093
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7094
+  (0.1ms) begin transaction
7095
+ SQL (0.2ms) UPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:17:37.881525"], ["last_sign_in_at", "2014-06-30 23:17:35.093002"], ["sign_in_count", 54], ["updated_at", "2014-06-30 23:17:37.882002"]]
7096
+  (1.6ms) commit transaction
7097
+  (0.1ms) begin transaction
7098
+ Binary data inserted for `string` type on column `encrypted_password`
7099
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$ZwALRt.rL1TQrDsa1iiCReJ2nbFFwDu7/EC9dTAB7WMitUFeLAuj."], ["updated_at", "2014-06-30 23:17:37.946282"]]
7100
+  (0.9ms) commit transaction
7101
+ Completed 200 OK in 127ms (Views: 0.5ms | ActiveRecord: 3.3ms)
7102
+
7103
+
7104
+ Started OPTIONS "/auth/sign_out" for 127.0.0.1 at 2014-06-30 18:17:39 -0500
7105
+
7106
+
7107
+ Started DELETE "/auth/sign_out" for 127.0.0.1 at 2014-06-30 18:17:39 -0500
7108
+ Processing by DeviseTokenAuth::SessionsController#destroy as HTML
7109
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7110
+  (0.1ms) begin transaction
7111
+ SQL (0.3ms) UPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:17:39.983753"], ["last_sign_in_at", "2014-06-30 23:17:37.881525"], ["sign_in_count", 55], ["updated_at", "2014-06-30 23:17:39.984197"]]
7112
+  (0.6ms) commit transaction
7113
+  (0.0ms) begin transaction
7114
+  (0.0ms) commit transaction
7115
+  (0.1ms) begin transaction
7116
+ Binary data inserted for `string` type on column `encrypted_password`
7117
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$rIYywSIPnW7Fji3Qg1.l9O7q6us4II3QQAftR3w5JCrebv9L3i2GO"], ["updated_at", "2014-06-30 23:17:40.049104"]]
7118
+  (0.6ms) commit transaction
7119
+ Completed 200 OK in 132ms (Views: 0.1ms | ActiveRecord: 2.3ms)
7120
+
7121
+
7122
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 18:17:41 -0500
7123
+ Processing by TestController#members_only as HTML
7124
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
7125
+
7126
+
7127
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 18:17:44 -0500
7128
+ Processing by TestController#members_only as HTML
7129
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
7130
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7131
+  (0.1ms) select sqlite_version(*)
7132
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7133
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7134
+ Migrating to DeviseTokenAuthCreateUsers (20140629011345)
7135
+  (0.0ms) begin transaction
7136
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "confirm_success_url" varchar(255), "auth_token" varchar(255) DEFAULT '' NOT NULL, "name" varchar(255), "nickname" varchar(255), "image" varchar(255), "provider" varchar(255), "uid" varchar(255) DEFAULT '' NOT NULL, "created_at" datetime, "updated_at" datetime)
7137
+  (0.1ms) CREATE INDEX "index_users_on_auth_token" ON "users" ("auth_token")
7138
+  (0.1ms) SELECT sql
7139
+ FROM sqlite_master
7140
+ WHERE name='index_users_on_auth_token' AND type='index'
7141
+ UNION ALL
7142
+ SELECT sql
7143
+ FROM sqlite_temp_master
7144
+ WHERE name='index_users_on_auth_token' AND type='index'
7145
+
7146
+  (0.7ms) CREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")
7147
+  (0.1ms) SELECT sql
7148
+ FROM sqlite_master
7149
+ WHERE name='index_users_on_uid' AND type='index'
7150
+ UNION ALL
7151
+ SELECT sql
7152
+ FROM sqlite_temp_master
7153
+ WHERE name='index_users_on_uid' AND type='index'
7154
+
7155
+  (0.1ms)  SELECT sql
7156
+ FROM sqlite_master
7157
+ WHERE name='index_users_on_auth_token' AND type='index'
7158
+ UNION ALL
7159
+ SELECT sql
7160
+ FROM sqlite_temp_master
7161
+ WHERE name='index_users_on_auth_token' AND type='index'
7162
+ 
7163
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
7164
+  (0.1ms)  SELECT sql
7165
+ FROM sqlite_master
7166
+ WHERE name='index_users_on_email' AND type='index'
7167
+ UNION ALL
7168
+ SELECT sql
7169
+ FROM sqlite_temp_master
7170
+ WHERE name='index_users_on_email' AND type='index'
7171
+ 
7172
+  (0.1ms) SELECT sql
7173
+ FROM sqlite_master
7174
+ WHERE name='index_users_on_uid' AND type='index'
7175
+ UNION ALL
7176
+ SELECT sql
7177
+ FROM sqlite_temp_master
7178
+ WHERE name='index_users_on_uid' AND type='index'
7179
+
7180
+  (0.1ms)  SELECT sql
7181
+ FROM sqlite_master
7182
+ WHERE name='index_users_on_auth_token' AND type='index'
7183
+ UNION ALL
7184
+ SELECT sql
7185
+ FROM sqlite_temp_master
7186
+ WHERE name='index_users_on_auth_token' AND type='index'
7187
+ 
7188
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
7189
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140629011345"]]
7190
+  (0.8ms) commit transaction
7191
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7192
+  (0.1ms) SELECT sql
7193
+ FROM sqlite_master
7194
+ WHERE name='index_users_on_reset_password_token' AND type='index'
7195
+ UNION ALL
7196
+ SELECT sql
7197
+ FROM sqlite_temp_master
7198
+ WHERE name='index_users_on_reset_password_token' AND type='index'
7199
+
7200
+  (0.1ms)  SELECT sql
7201
+ FROM sqlite_master
7202
+ WHERE name='index_users_on_email' AND type='index'
7203
+ UNION ALL
7204
+ SELECT sql
7205
+ FROM sqlite_temp_master
7206
+ WHERE name='index_users_on_email' AND type='index'
7207
+ 
7208
+  (0.1ms) SELECT sql
7209
+ FROM sqlite_master
7210
+ WHERE name='index_users_on_uid' AND type='index'
7211
+ UNION ALL
7212
+ SELECT sql
7213
+ FROM sqlite_temp_master
7214
+ WHERE name='index_users_on_uid' AND type='index'
7215
+
7216
+  (0.1ms)  SELECT sql
7217
+ FROM sqlite_master
7218
+ WHERE name='index_users_on_auth_token' AND type='index'
7219
+ UNION ALL
7220
+ SELECT sql
7221
+ FROM sqlite_temp_master
7222
+ WHERE name='index_users_on_auth_token' AND type='index'
7223
+ 
7224
+
7225
+
7226
+ Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 18:19:26 -0500
7227
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7228
+
7229
+
7230
+ Started GET "/auth/github/callback?code=0463cb5dbd54b504bebb&state=d4be6aed9bad7023ea231e478bdafcdcdc27c2feb15f2238" for 127.0.0.1 at 2014-06-30 18:19:27 -0500
7231
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
7232
+ Parameters: {"code"=>"0463cb5dbd54b504bebb", "state"=>"d4be6aed9bad7023ea231e478bdafcdcdc27c2feb15f2238", "provider"=>"github"}
7233
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' AND "users"."provider" = 'github' AND "users"."email" = 'lynn.dylan.hurley+github@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
7234
+  (0.1ms) begin transaction
7235
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'lynn.dylan.hurley+github@gmail.com' LIMIT 1
7236
+ Binary data inserted for `string` type on column `encrypted_password`
7237
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "image", "name", "nickname", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-06-30 23:19:28.524288"], ["email", "lynn.dylan.hurley+github@gmail.com"], ["encrypted_password", "$2a$10$VAh/2KV/3BVL9ITZScDgEe2PwigsHvQfniBl3oAKcApCJOac2WiZK"], ["image", "https://avatars.githubusercontent.com/u/468037?"], ["name", "Lynn Dylan Hurley"], ["nickname", "lynndylanhurley"], ["provider", "github"], ["uid", "468037"], ["updated_at", "2014-06-30 23:19:28.524288"]]
7238
+  (1.0ms) commit transaction
7239
+ Rendered /Users/lynnhurley/Code/Personal/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (1.1ms)
7240
+ Completed 200 OK in 116ms (Views: 6.4ms | ActiveRecord: 2.0ms)
7241
+
7242
+
7243
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 18:19:31 -0500
7244
+ Processing by TestController#members_only as HTML
7245
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7246
+  (0.1ms) begin transaction
7247
+ Binary data inserted for `string` type on column `current_sign_in_ip`
7248
+ Binary data inserted for `string` type on column `last_sign_in_ip`
7249
+ SQL (0.3ms) UPDATE "users" SET "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_at" = ?, "last_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:19:31.896525"], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_at", "2014-06-30 23:19:31.896525"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2014-06-30 23:19:31.897466"]]
7250
+  (0.6ms) commit transaction
7251
+  (0.1ms) begin transaction
7252
+ Binary data inserted for `string` type on column `encrypted_password`
7253
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$ttujn5RMmheLvZrP7lhZU.7yBQPhTlafOdXKAn8s/d1B1A9ED.oN2"], ["updated_at", "2014-06-30 23:19:31.961467"]]
7254
+  (0.5ms) commit transaction
7255
+ Completed 200 OK in 127ms (Views: 0.7ms | ActiveRecord: 2.0ms)
7256
+
7257
+
7258
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-06-30 18:19:34 -0500
7259
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
7260
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7261
+  (0.1ms) begin transaction
7262
+ SQL (0.3ms) UPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:19:34.555416"], ["sign_in_count", 2], ["updated_at", "2014-06-30 23:19:34.555918"]]
7263
+  (1.6ms) commit transaction
7264
+  (0.1ms) begin transaction
7265
+ Binary data inserted for `string` type on column `encrypted_password`
7266
+ SQL (0.3ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$GAoXnINgL2wS3IQY2QI5MujoaGVYPABxF8dAt.Iv5wWQFbuQXWNqS"], ["updated_at", "2014-06-30 23:19:34.620870"]]
7267
+  (0.5ms) commit transaction
7268
+ Completed 200 OK in 129ms (Views: 0.3ms | ActiveRecord: 3.0ms)
7269
+
7270
+
7271
+ Started GET "/test/members_only" for 127.0.0.1 at 2014-06-30 18:19:37 -0500
7272
+ Processing by TestController#members_only as HTML
7273
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
7274
+  (0.1ms) begin transaction
7275
+ SQL (0.3ms) UPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["current_sign_in_at", "2014-06-30 23:19:37.384630"], ["last_sign_in_at", "2014-06-30 23:19:34.555416"], ["sign_in_count", 3], ["updated_at", "2014-06-30 23:19:37.385084"]]
7276
+  (1.6ms) commit transaction
7277
+  (0.1ms) begin transaction
7278
+ Binary data inserted for `string` type on column `encrypted_password`
7279
+ SQL (0.2ms) UPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["encrypted_password", "$2a$10$XcRSyk.z2Rw11m865gc61ub/7V1HaGM.W4rlRjJjVcPRGbAS1C6mC"], ["updated_at", "2014-06-30 23:19:37.448964"]]
7280
+  (0.7ms) commit transaction
7281
+ Completed 200 OK in 127ms (Views: 0.5ms | ActiveRecord: 3.2ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: attr_encrypted
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: sqlite3
43
57
  requirement: !ruby/object:Gem::Requirement