devise_token_auth 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/devise_token_auth/auth_controller.rb +6 -11
- data/app/controllers/devise_token_auth/concerns/set_user_by_token.rb +5 -3
- data/app/controllers/devise_token_auth/confirmations_controller.rb +11 -2
- data/app/models/user.rb +2 -0
- data/app/views/devise_token_auth/omniauth_success.html.erb +1 -1
- data/db/migrate/20140628234942_devise_token_auth_create_users.rb +0 -4
- data/lib/devise_token_auth/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +540 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7021fe44250029f78d71e63c69974cd4f27b5e
|
4
|
+
data.tar.gz: 5bddf76a0dea6fef4f9f42f54e60805068fd0d61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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:
|
41
|
-
name:
|
42
|
-
image:
|
43
|
-
|
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 &&
|
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
|
-
|
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=#{
|
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
|
-
|
11
|
-
|
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
@@ -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
|
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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6753
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6775
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
6779
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "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[0m
|
6799
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6800
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
6801
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["encrypted_password", "$2a$10$bEkSd2o3AhOnx4vovaPawe07/ElSzRIPPW5za0aFTEs9k6RXMTEv."], ["updated_at", "2014-06-30 23:06:45.264627"]]
|
6802
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "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[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "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[0m
|
7038
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7039
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7040
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["encrypted_password", "$2a$10$0xXaXQ1bc3BdBUStSVCzf.KRDUsctU0SNFjvdb0Sfe2Kbgp34ew3."], ["updated_at", "2014-06-30 23:17:22.559320"]]
|
7041
|
+
[1m[35m (1.6ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1[0m
|
7052
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7053
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["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
|
+
[1m[35m (1.6ms)[0m commit transaction
|
7055
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7056
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7057
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
|
7065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7066
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
7068
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7069
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7070
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["encrypted_password", "$2a$10$ny7UTlbqZ1E4vEyj6oIv8uQjvmfVoQEPIaqI9TH4Y02GeHYNL9yae"], ["updated_at", "2014-06-30 23:17:31.088044"]]
|
7071
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1[0m
|
7081
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7082
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["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
|
+
[1m[35m (1.7ms)[0m commit transaction
|
7084
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7085
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7086
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
|
7094
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7095
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
7097
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7098
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7099
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["encrypted_password", "$2a$10$ZwALRt.rL1TQrDsa1iiCReJ2nbFFwDu7/EC9dTAB7WMitUFeLAuj."], ["updated_at", "2014-06-30 23:17:37.946282"]]
|
7100
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1[0m
|
7110
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7111
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["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
|
+
[1m[35m (0.6ms)[0m commit transaction
|
7113
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7114
|
+
[1m[35m (0.0ms)[0m commit transaction
|
7115
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7116
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7117
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7131
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
7132
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
7133
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7134
|
+
Migrating to DeviseTokenAuthCreateUsers (20140629011345)
|
7135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7136
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_auth_token" ON "users" ("auth_token")[0m
|
7138
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")[0m
|
7147
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
7163
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
7164
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
7172
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
7188
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
7189
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140629011345"]]
|
7190
|
+
[1m[35m (0.8ms)[0m commit transaction
|
7191
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7192
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
7208
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
7224
|
+
|
7225
|
+
|
7226
|
+
Started GET "/auth/github" for 127.0.0.1 at 2014-06-30 18:19:26 -0500
|
7227
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7235
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "image", "name", "nickname", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1[0m
|
7246
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "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[0m [["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
|
+
[1m[35m (0.6ms)[0m commit transaction
|
7251
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7252
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7253
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
|
7261
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7262
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
7264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7265
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7266
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "encrypted_password" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["encrypted_password", "$2a$10$GAoXnINgL2wS3IQY2QI5MujoaGVYPABxF8dAt.Iv5wWQFbuQXWNqS"], ["updated_at", "2014-06-30 23:19:34.620870"]]
|
7267
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1[0m
|
7274
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7275
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["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
|
+
[1m[35m (1.6ms)[0m commit transaction
|
7277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7278
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
7279
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
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.
|
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
|