devise_token_auth 0.1.7 → 0.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d5223a7133b90d39a6485276482d09a223acf03
4
- data.tar.gz: 28f4a3c04c27759fa82586bd2aa357fd79589b96
3
+ metadata.gz: 28633d9c16bc8ada13e729c78ff68476e85bf551
4
+ data.tar.gz: 997c2f78489c3f638c6bdaa17a6c2a3802d945ed
5
5
  SHA512:
6
- metadata.gz: fb4c846f91d1ca5daf5c9f1f57f044b986d5348111db1f6c91f9dfe5429dc0930d9889768e4f0a31eef573bbd41fe1528efda28e40150acaf0e559736a6f9e6e
7
- data.tar.gz: f6dbfd0da391721db36f79a96da92259931cefa3ce5cf10c8ff0afde2d40c6b217b3c7318ab028689ecc2ca8b983392a0430b0a182102faab752247f6facdfbe
6
+ metadata.gz: ff1616c5c7189d705b178b1fb13c9689f2cb768b3a5f92c9937bf7accefc1176a8a3c712a4dca10fba4e33ff35cdaf449ce0ea9032b7f5e3e5138cbdfc8f27d4
7
+ data.tar.gz: 06733b4069b644efe0957873176cfe5ca924fe69213ed278603037f45e52084b6e1ec4d08d2994537de8a2f7e0402aaf533583eb2386cf2a747e31e9f39faf4e
@@ -1,6 +1,5 @@
1
1
  module DeviseTokenAuth
2
2
  class ApplicationController < ActionController::Base
3
3
  include DeviseTokenAuth::Concerns::SetUserByToken
4
- prepend_before_action :set_user_by_token
5
4
  end
6
5
  end
@@ -1,7 +1,6 @@
1
1
  module DeviseTokenAuth
2
2
  class AuthController < DeviseTokenAuth::ApplicationController
3
3
  respond_to :json
4
-
5
4
  skip_after_filter :update_auth_header, :only => [:omniauth_success, :omniauth_failure]
6
5
 
7
6
  def validate_token
@@ -23,7 +23,7 @@ module DeviseTokenAuth::Concerns::SetUserByToken
23
23
  @user = @current_user = uid && User.find_by_uid(uid)
24
24
 
25
25
  if @user && @user.valid_token?(@client_id, token)
26
- sign_in(@user, store: false)
26
+ sign_in(:user, @user, store: false, bypass: true)
27
27
  else
28
28
  @user = @current_user = nil
29
29
  end
@@ -6,6 +6,8 @@ module DeviseTokenAuth
6
6
  self.resource = resource_class.send_reset_password_instructions(resource_params)
7
7
  yield resource if block_given?
8
8
 
9
+ throw "Not implemented"
10
+
9
11
  if resource.errors.empty?
10
12
  render json: {
11
13
  success: true
@@ -23,19 +25,15 @@ module DeviseTokenAuth
23
25
  self.resource = resource_class.reset_password_by_token(resource_params)
24
26
  yield resource if block_given?
25
27
 
28
+ throw "Not implemented"
29
+
26
30
  if resource.errors.empty?
27
31
  resource.unlock_access! if unlockable?(resource)
28
- sign_in(resource_name, resource)
29
-
30
- user_data = resource.as_json(methods: :can_score)
31
- user_data[:permissions] = resource.all_permissions
32
- user_data[:scoring_admin] = resource.scoring_admin
33
32
 
34
33
  render json: {
35
34
  success: true,
36
35
  data: {
37
- user: user_data,
38
- auth_token: resource.authentication_token
36
+ user: self.resource
39
37
  }
40
38
  }
41
39
  else
@@ -19,8 +19,6 @@ module DeviseTokenAuth
19
19
  else
20
20
  @user = resource
21
21
 
22
- sign_in(:user, @user, store: false)
23
-
24
22
  # create client id
25
23
  @client_id = SecureRandom.urlsafe_base64(nil, false)
26
24
  @token = SecureRandom.urlsafe_base64(nil, false)
data/config/routes.rb CHANGED
@@ -8,7 +8,7 @@ DeviseTokenAuth::Engine.routes.draw do
8
8
  :passwords => "devise_token_auth/passwords",
9
9
  :confirmations => "devise_token_auth/confirmations"}
10
10
 
11
- get "validate_token", to: "auth#validate_token"
11
+ get "validate_token", to: "auth#validate_token"
12
12
  get "failure", to: "auth#omniauth_failure"
13
13
  get ":provider/callback", to: "auth#omniauth_success"
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module DeviseTokenAuth
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -1,3 +1,5 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  include DeviseTokenAuth::Concerns::SetUserByToken
3
+
4
+ respond_to :json
3
5
  end
@@ -1,4 +1,4 @@
1
- class TestController < ApplicationController
1
+ class DemoController < ApplicationController
2
2
  def members_only
3
3
  if @user
4
4
  render json: {
@@ -1,5 +1,5 @@
1
1
  Rails.application.routes.draw do
2
2
  mount DeviseTokenAuth::Engine => "/auth"
3
3
 
4
- get 'test/members_only', to: 'test#members_only'
4
+ get 'demo/members_only', to: 'demo#members_only'
5
5
  end
Binary file
@@ -10768,3 +10768,293 @@ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
10768
10768
  SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 9 [["tokens", "{\"pzlFC0qCsyE8J9M5zwS5cQ\":{\"token\":\"$2a$10$efRN2bolHvuDmJZvngCJgeFfRrColRWNKyiBo2O6AEuTK6h18cQHS\",\"expiry\":\"2014-07-18 19:41:48 -0500\"},\"\":{\"token\":\"$2a$10$C0UaN9QEwpIxCtx7wpjNY.d90wy4jRlAzA85ZFwAUXj2bJNP3byHi\",\"expiry\":\"2014-07-18 19:41:47 -0500\"},\"3lX50yTkw9nPtLn2OcfHnA\":{\"token\":\"$2a$10$/Mz3imGDacImVl09i1DTMu0p1OVsLHIVR3Mr9HSXxbjdD2wXOuICe\",\"expiry\":\"2014-07-18 19:44:30 -0500\"},\"miVoz6341BnD1AeVYuCt8w\":{\"token\":\"$2a$10$YLPjZ9ZwovdwqNX0x6OF9eUKy27uLrJpFmQIt83IAyW0O96iT9rEa\",\"expiry\":\"2014-07-18 19:45:07 -0500\"},\"kADGLDMT9-EkUksPpcfAHg\":{\"token\":\"$2a$10$ZOJoR38lnAVBG29Y7kika.Oivkr2G4AsnI/.AlbU9HLNLoRDdN5iK\",\"expiry\":\"2014-07-18 19:45:45 -0500\"},\"F-_eXekstqN82e0jEcCWZg\":{\"token\":\"$2a$10$.ALPQGltOeONC1n4jQZzteGIfcplbobGzhj48G.ZCJnFtw7pj2d9q\",\"expiry\":\"2014-07-18 19:46:23 -0500\"}}"], ["updated_at", "2014-07-05 00:46:23.645853"]]
10769
10769
   (1.9ms) commit transaction
10770
10770
  Completed 200 OK in 228ms (Views: 0.4ms | ActiveRecord: 4.5ms)
10771
+
10772
+
10773
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-05 16:44:35 -0500
10774
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10775
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
10776
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'lynn+test@healthbox.com' LIMIT 1
10777
+ Completed 401 Unauthorized in 7ms (Views: 0.2ms | ActiveRecord: 1.0ms)
10778
+
10779
+
10780
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-05 16:44:35 -0500
10781
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
10782
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
10783
+ Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
10784
+
10785
+
10786
+ Started GET "/auth/github" for 127.0.0.1 at 2014-07-05 16:44:37 -0500
10787
+
10788
+
10789
+ Started GET "/auth/github/callback?code=1110909006729afef592&state=8a593f9e9829f7b279555056b9cf185bc171e64c01a98b64" for 127.0.0.1 at 2014-07-05 16:44:37 -0500
10790
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
10791
+ Parameters: {"code"=>"1110909006729afef592", "state"=>"8a593f9e9829f7b279555056b9cf185bc171e64c01a98b64", "provider"=>"github"}
10792
+ User Load (1.4ms) 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
10793
+  (0.1ms) begin transaction
10794
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'lynn.dylan.hurley+github@gmail.com' LIMIT 1
10795
+ User Load (1.9ms) SELECT "users".* FROM "users" WHERE "users"."confirmation_token" = '6aad21c6aad69f396d5f529536e41728651d9817f405ecc3f0562604b8fc35ff' ORDER BY "users"."id" ASC LIMIT 1
10796
+ Binary data inserted for `string` type on column `confirmation_token`
10797
+ Binary data inserted for `string` type on column `encrypted_password`
10798
+ SQL (0.7ms) INSERT INTO "users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "encrypted_password", "provider", "tokens", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["confirmation_sent_at", "2014-07-05 21:44:38.983250"], ["confirmation_token", "6aad21c6aad69f396d5f529536e41728651d9817f405ecc3f0562604b8fc35ff"], ["created_at", "2014-07-05 21:44:38.770496"], ["email", "lynn.dylan.hurley+github@gmail.com"], ["encrypted_password", "$2a$10$L/1VeEg/jrPD6IF9EYgZfeg5R2w2bIRxS5a8BghChxKDmbhIRRv8."], ["provider", "github"], ["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"}}"], ["uid", "468037"], ["updated_at", "2014-07-05 21:44:38.770496"]]
10799
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/devise-3.2.4/app/views/devise/mailer/confirmation_instructions.html.erb (1.6ms)
10800
+
10801
+ Devise::Mailer#confirmation_instructions: processed outbound mail in 34.7ms
10802
+
10803
+ Sent mail to lynn.dylan.hurley+github@gmail.com (27.1ms)
10804
+ Date: Sat, 05 Jul 2014 16:44:39 -0500
10805
+ From: please-change-me-at-config-initializers-devise@example.com
10806
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
10807
+ To: lynn.dylan.hurley+github@gmail.com
10808
+ Message-ID: <53b871c76c00_81523fc308444bb0712ac@Lynns-MacBook-Pro.local.mail>
10809
+ Subject: Confirmation instructions
10810
+ Mime-Version: 1.0
10811
+ Content-Type: text/html;
10812
+ charset=UTF-8
10813
+ Content-Transfer-Encoding: 7bit
10814
+
10815
+ <p>Welcome lynn.dylan.hurley+github@gmail.com!</p>
10816
+
10817
+ <p>You can confirm your account email through the link below:</p>
10818
+
10819
+ <p><a href="http://localhost:3000/auth/confirmation?confirmation_token=uszv4J-ozqBRBVx8ZyZx">Confirm my account</a></p>
10820
+
10821
+  (0.7ms) commit transaction
10822
+  (0.0ms) begin transaction
10823
+ SQL (0.2ms) UPDATE "users" SET "image" = ?, "name" = ?, "nickname" = ?, "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["image", "https://avatars.githubusercontent.com/u/468037?"], ["name", "Lynn Dylan Hurley"], ["nickname", "lynndylanhurley"], ["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"}}"], ["updated_at", "2014-07-05 21:44:39.096999"]]
10824
+  (0.5ms) commit transaction
10825
+ Rendered /Users/lynnhurley/Code/Auth/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (0.5ms)
10826
+ Completed 200 OK in 481ms (Views: 3.4ms | ActiveRecord: 5.8ms)
10827
+
10828
+
10829
+ Started OPTIONS "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:44:41 -0500
10830
+
10831
+
10832
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:44:41 -0500
10833
+
10834
+ ActionController::RoutingError (No route matches [GET] "/demo/members_only"):
10835
+ actionpack (4.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
10836
+ actionpack (4.1.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
10837
+ railties (4.1.2) lib/rails/rack/logger.rb:38:in `call_app'
10838
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `block in call'
10839
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
10840
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
10841
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `tagged'
10842
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `call'
10843
+ actionpack (4.1.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
10844
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
10845
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
10846
+ activesupport (4.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
10847
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
10848
+ actionpack (4.1.2) lib/action_dispatch/middleware/static.rb:64:in `call'
10849
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
10850
+ railties (4.1.2) lib/rails/engine.rb:514:in `call'
10851
+ railties (4.1.2) lib/rails/application.rb:144:in `call'
10852
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
10853
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
10854
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
10855
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
10856
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
10857
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
10858
+
10859
+
10860
+ 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.3ms)
10861
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
10862
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
10863
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (7.8ms)
10864
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (38.8ms)
10865
+
10866
+
10867
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:46:17 -0500
10868
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10869
+
10870
+ ActionController::RoutingError (No route matches [GET] "/demo/members_only"):
10871
+ actionpack (4.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
10872
+ actionpack (4.1.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
10873
+ railties (4.1.2) lib/rails/rack/logger.rb:38:in `call_app'
10874
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `block in call'
10875
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
10876
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
10877
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `tagged'
10878
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `call'
10879
+ actionpack (4.1.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
10880
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
10881
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
10882
+ activesupport (4.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
10883
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
10884
+ actionpack (4.1.2) lib/action_dispatch/middleware/static.rb:64:in `call'
10885
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
10886
+ railties (4.1.2) lib/rails/engine.rb:514:in `call'
10887
+ railties (4.1.2) lib/rails/application.rb:144:in `call'
10888
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
10889
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
10890
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
10891
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
10892
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
10893
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
10894
+
10895
+
10896
+ 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 (0.8ms)
10897
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
10898
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
10899
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.0ms)
10900
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.5ms)
10901
+
10902
+
10903
+ Started GET "/auth/github" for 127.0.0.1 at 2014-07-05 16:46:20 -0500
10904
+
10905
+
10906
+ Started GET "/auth/github/callback?code=2c51a1e283fa73ab1168&state=4f6df11d38095956a3079c5fb0d47a0c8fe7e4a3f966e6f5" for 127.0.0.1 at 2014-07-05 16:46:20 -0500
10907
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
10908
+ Parameters: {"code"=>"2c51a1e283fa73ab1168", "state"=>"4f6df11d38095956a3079c5fb0d47a0c8fe7e4a3f966e6f5", "provider"=>"github"}
10909
+ 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
10910
+  (0.1ms) begin transaction
10911
+ SQL (0.4ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"}}"], ["updated_at", "2014-07-05 21:46:21.338367"]]
10912
+  (1.6ms) commit transaction
10913
+  (0.0ms) begin transaction
10914
+ SQL (0.1ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"}}"], ["updated_at", "2014-07-05 21:46:21.343654"]]
10915
+  (0.5ms) commit transaction
10916
+ Rendered /Users/lynnhurley/Code/Auth/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (0.5ms)
10917
+ Completed 200 OK in 101ms (Views: 2.6ms | ActiveRecord: 3.2ms)
10918
+
10919
+
10920
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:46:24 -0500
10921
+
10922
+ ActionController::RoutingError (No route matches [GET] "/demo/members_only"):
10923
+ actionpack (4.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
10924
+ actionpack (4.1.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
10925
+ railties (4.1.2) lib/rails/rack/logger.rb:38:in `call_app'
10926
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `block in call'
10927
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
10928
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
10929
+ activesupport (4.1.2) lib/active_support/tagged_logging.rb:68:in `tagged'
10930
+ railties (4.1.2) lib/rails/rack/logger.rb:20:in `call'
10931
+ actionpack (4.1.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
10932
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
10933
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
10934
+ activesupport (4.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
10935
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
10936
+ actionpack (4.1.2) lib/action_dispatch/middleware/static.rb:64:in `call'
10937
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
10938
+ railties (4.1.2) lib/rails/engine.rb:514:in `call'
10939
+ railties (4.1.2) lib/rails/application.rb:144:in `call'
10940
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
10941
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
10942
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
10943
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
10944
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
10945
+ /opt/rubies/2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
10946
+
10947
+
10948
+ 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.2ms)
10949
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
10950
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
10951
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms)
10952
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.1.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (19.4ms)
10953
+
10954
+
10955
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:46:58 -0500
10956
+ Processing by DemoController#members_only as HTML
10957
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
10958
+  (0.1ms) begin transaction
10959
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"}}"], ["updated_at", "2014-07-05 21:46:58.380606"]]
10960
+  (0.6ms) commit transaction
10961
+ Completed 401 Unauthorized in 76ms
10962
+
10963
+
10964
+ Started OPTIONS "/auth/validate_token" for 127.0.0.1 at 2014-07-05 16:50:47 -0500
10965
+
10966
+
10967
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-05 16:50:47 -0500
10968
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
10969
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
10970
+  (0.2ms) begin transaction
10971
+ SQL (0.5ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"}}"], ["updated_at", "2014-07-05 21:50:47.384399"]]
10972
+  (1.6ms) commit transaction
10973
+ Completed 401 Unauthorized in 84ms
10974
+
10975
+
10976
+ Started GET "/auth/github" for 127.0.0.1 at 2014-07-05 16:56:50 -0500
10977
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10978
+
10979
+
10980
+ Started GET "/auth/github/callback?code=998b819c3f5c6d1a889f&state=ee9bbfcf44c12b4a8ccaf2ab0217c82f386e9ecf2be38d98" for 127.0.0.1 at 2014-07-05 16:56:50 -0500
10981
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
10982
+ Parameters: {"code"=>"998b819c3f5c6d1a889f", "state"=>"ee9bbfcf44c12b4a8ccaf2ab0217c82f386e9ecf2be38d98", "provider"=>"github"}
10983
+ 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
10984
+  (0.1ms) begin transaction
10985
+ SQL (0.4ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$fuDv2AflN.yZ7J9BKSj8XepJBCi8uX6a4cn972/q6i1c9XHN2OXzm\",\"expiry\":\"2014-07-19 16:56:51 -0500\"}}"], ["updated_at", "2014-07-05 21:56:51.367398"]]
10986
+  (1.7ms) commit transaction
10987
+  (0.0ms) begin transaction
10988
+ SQL (0.2ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$fuDv2AflN.yZ7J9BKSj8XepJBCi8uX6a4cn972/q6i1c9XHN2OXzm\",\"expiry\":\"2014-07-19 16:56:51 -0500\"}}"], ["updated_at", "2014-07-05 21:56:51.390244"]]
10989
+  (0.6ms) commit transaction
10990
+ Rendered /Users/lynnhurley/Code/Auth/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (1.2ms)
10991
+ Completed 200 OK in 110ms (Views: 6.4ms | ActiveRecord: 3.5ms)
10992
+
10993
+
10994
+ Started OPTIONS "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:56:54 -0500
10995
+
10996
+
10997
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:56:54 -0500
10998
+ Processing by DemoController#members_only as HTML
10999
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
11000
+  (0.1ms) begin transaction
11001
+ SQL (0.2ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$fuDv2AflN.yZ7J9BKSj8XepJBCi8uX6a4cn972/q6i1c9XHN2OXzm\",\"expiry\":\"2014-07-19 16:56:51 -0500\"}}"], ["updated_at", "2014-07-05 21:56:54.533846"]]
11002
+  (0.7ms) commit transaction
11003
+ Completed 401 Unauthorized in 86ms
11004
+
11005
+
11006
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:57:27 -0500
11007
+ Processing by DemoController#members_only as HTML
11008
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
11009
+  (0.1ms) begin transaction
11010
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$fuDv2AflN.yZ7J9BKSj8XepJBCi8uX6a4cn972/q6i1c9XHN2OXzm\",\"expiry\":\"2014-07-19 16:56:51 -0500\"}}"], ["updated_at", "2014-07-05 21:57:48.665403"]]
11011
+  (1.6ms) commit transaction
11012
+ Completed 401 Unauthorized in 21422ms
11013
+
11014
+
11015
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:59:31 -0500
11016
+ Processing by DemoController#members_only as HTML
11017
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
11018
+  (0.1ms) begin transaction
11019
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$a4sd0pzMWQuaiWBC77mCru0hO5o6JdXbLah560sxZ26WHJOdbjqIa\",\"expiry\":\"2014-07-19 16:59:32 -0500\"}}"], ["updated_at", "2014-07-05 21:59:32.126262"]]
11020
+  (1.5ms) commit transaction
11021
+ Completed 200 OK in 141ms (Views: 0.7ms | ActiveRecord: 2.5ms)
11022
+
11023
+
11024
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:59:34 -0500
11025
+ Processing by DemoController#members_only as HTML
11026
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
11027
+  (0.1ms) begin transaction
11028
+ SQL (0.2ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$YCKsOHRFjJzCBC9YpK7KNuAAjzR0bGxlYakdTKkRGJ7mQfu.sCR.K\",\"expiry\":\"2014-07-19 16:59:34 -0500\"}}"], ["updated_at", "2014-07-05 21:59:34.636902"]]
11029
+  (1.6ms) commit transaction
11030
+ Completed 200 OK in 126ms (Views: 0.6ms | ActiveRecord: 2.1ms)
11031
+
11032
+
11033
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-05 16:59:37 -0500
11034
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
11035
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
11036
+  (0.1ms) begin transaction
11037
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$SC9wm2qN0vjK6qM657TpgupNMZF4VKT4mrigKAsDVyo4ihH/3wy5i\",\"expiry\":\"2014-07-19 16:59:37 -0500\"}}"], ["updated_at", "2014-07-05 21:59:37.840089"]]
11038
+  (1.6ms) commit transaction
11039
+ Completed 200 OK in 129ms (Views: 0.4ms | ActiveRecord: 2.2ms)
11040
+
11041
+
11042
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-05 16:59:39 -0500
11043
+ Processing by DemoController#members_only as HTML
11044
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
11045
+  (0.1ms) begin transaction
11046
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$o0vY0PgnwXnnDEkas2vS3eh3TCjBFE2qdDJiv05uTjdA7FLnS3bES\",\"expiry\":\"2014-07-19 16:59:39 -0500\"}}"], ["updated_at", "2014-07-05 21:59:39.561762"]]
11047
+  (1.7ms) commit transaction
11048
+ Completed 200 OK in 127ms (Views: 0.6ms | ActiveRecord: 2.2ms)
11049
+
11050
+
11051
+ Started OPTIONS "/auth/validate_token" for 127.0.0.1 at 2014-07-05 17:01:50 -0500
11052
+
11053
+
11054
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-05 17:01:50 -0500
11055
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
11056
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '468037' LIMIT 1
11057
+  (0.1ms) begin transaction
11058
+ SQL (1.0ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10 [["tokens", "{\"zYCYzp8nQgBDos5XVof9vw\":{\"token\":\"$2a$10$Z2rUuJBJqRceqVSOIYq9hOP0AYPfBsy.EM50m7iKU4Rd5IC7AkZ7y\",\"expiry\":\"2014-07-19 16:44:38 -0500\"},\"4avxHKYnEhMZtsvOiSI--g\":{\"token\":\"$2a$10$tQUPVKIUfw/dHSQ0bLtnReY6IyUZ/ILftB3SbeNug/Bqcu/rHam.a\",\"expiry\":\"2014-07-19 16:46:21 -0500\"},\"bvLRitJHje0CXGbj9ZsnNw\":{\"token\":\"$2a$10$RaC8Uhj2o5brchmQss6lYezvgJ0Yqmqge30VYiVkxOUuK8kgcRVe6\",\"expiry\":\"2014-07-19 17:01:50 -0500\"}}"], ["updated_at", "2014-07-05 22:01:50.895842"]]
11059
+  (15.5ms) commit transaction
11060
+ Completed 200 OK in 157ms (Views: 0.3ms | ActiveRecord: 17.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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
@@ -107,7 +107,7 @@ files:
107
107
  - test/dummy/app/assets/javascripts/application.js
108
108
  - test/dummy/app/assets/stylesheets/application.css
109
109
  - test/dummy/app/controllers/application_controller.rb
110
- - test/dummy/app/controllers/test_controller.rb
110
+ - test/dummy/app/controllers/demo_controller.rb
111
111
  - test/dummy/app/helpers/application_helper.rb
112
112
  - test/dummy/app/views/layouts/application.html.erb
113
113
  - test/dummy/bin/bundle
@@ -175,7 +175,7 @@ test_files:
175
175
  - test/dummy/app/assets/javascripts/application.js
176
176
  - test/dummy/app/assets/stylesheets/application.css
177
177
  - test/dummy/app/controllers/application_controller.rb
178
- - test/dummy/app/controllers/test_controller.rb
178
+ - test/dummy/app/controllers/demo_controller.rb
179
179
  - test/dummy/app/helpers/application_helper.rb
180
180
  - test/dummy/app/views/layouts/application.html.erb
181
181
  - test/dummy/bin/bundle