devise_token_auth 0.1.10 → 0.1.11

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: f78e5025091e517c72be531a3b00d6ab9d5e717f
4
- data.tar.gz: 9b169dc46c0df10fe06105faaad960cd83f0f74e
3
+ metadata.gz: 5940bd5f629bcdb628cf971bd84ad22dd69aa578
4
+ data.tar.gz: 6e13a7b2ed9e3c5f0560bd6a445b6e045799ba41
5
5
  SHA512:
6
- metadata.gz: df1f6fd1bf675171da0c989a3f30b333dd0b45f8244aea0df55c4d86037b39130d8b15426a175033e2c1b2722d6eedddeb6132bdb084c65e1a6487f70b17706a
7
- data.tar.gz: 1f69c1fe7142e280ee4cbbbbe4fb4b488383f3aff5d552fbe115d6569d086073013be35f0e51c5cc8ba5243ba6ee0f3c7c816904d88a07815504c24ea99fdfaf
6
+ metadata.gz: 5399d006a5598929e004e053dff1bbc611ea47673e80912b7793a4b2689c1a380c95ebf2984ebd7b5254c4562784bac67cfb2fa9865805a0a1dacedc5d282120
7
+ data.tar.gz: 35e2435fecf54b56295ae801b645e750f91b54e3400ac68a18bd3b32a9d82763a92ab401ed92cf9fed13867b0814de4cb9bf2b7a01bef583c8e66a2ba7a0eeb2
@@ -22,8 +22,7 @@ module DeviseTokenAuth
22
22
  # find or create user by provider and provider uid
23
23
  @user = User.where({
24
24
  uid: auth_hash['uid'],
25
- provider: auth_hash['provider'],
26
- email: auth_hash['info']['email'],
25
+ provider: auth_hash['provider']
27
26
  }).first_or_initialize
28
27
 
29
28
  # don't send confirmation email!!!
@@ -49,9 +48,10 @@ module DeviseTokenAuth
49
48
 
50
49
  # sync user info with provider, update/generate auth token
51
50
  @user.update_attributes({
52
- nickname: auth_hash['info']['nickname'],
53
- name: auth_hash['info']['name'],
54
- image: auth_hash['info']['image']
51
+ nickname: auth_hash['info']['nickname'],
52
+ name: auth_hash['info']['name'],
53
+ image: auth_hash['info']['image'],
54
+ email: auth_hash['info']['email']
55
55
  })
56
56
 
57
57
  # render user info to javascript postMessage communication window
@@ -1,3 +1,3 @@
1
1
  module DeviseTokenAuth
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -8,6 +8,6 @@ FACEBOOK_KEY: 515818101878894
8
8
  FACEBOOK_SECRET: d7cfef7cfa485dd30f10c237a97a0a8d
9
9
  FACEBOOK_REDIRECT_URI: http://localhost:3000/auth/facebook/callback
10
10
 
11
- GOOGLE_KEY: 276861244411-f90i61dv3gvdmjrscm5u3mok757bfhkt.apps.googleusercontent.com
12
- GOOGLE_SECRET: UV0sqR9M0LfDhrPuvS1vyPB_
11
+ GOOGLE_KEY: 276861244411-b1m3bteiuvraajilmcf8rvh83v5n4dp2.apps.googleusercontent.com
12
+ GOOGLE_SECRET: A9_CLZNIvPAY-T09fBiaKPEI
13
13
  GOOGLE_REDIRECT_URI: http://localhost:3000/auth/google/callback
Binary file
@@ -11058,3 +11058,72 @@ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
11058
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
11059
   (15.5ms) commit transaction
11060
11060
  Completed 200 OK in 157ms (Views: 0.3ms | ActiveRecord: 17.2ms)
11061
+
11062
+
11063
+ Started GET "/" for 127.0.0.1 at 2014-07-06 16:38:18 -0500
11064
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11065
+ Processing by Rails::WelcomeController#index as HTML
11066
+ Rendered /opt/rubies/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/templates/rails/welcome/index.html.erb (1.9ms)
11067
+ Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms)
11068
+
11069
+
11070
+ Started GET "/auth/google_oauth2" for 127.0.0.1 at 2014-07-06 16:41:36 -0500
11071
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11072
+
11073
+
11074
+ Started GET "/auth/google_oauth2/callback?state=d6349f39ff362e2db613e3b20b58aa6b02332a740c8771f2&code=4/aOcjblEnWSk4kWSx8BjejOPFIbw4.Yu_HgBnCxZMfmmS0T3UFEsNI50MbjgI" for 127.0.0.1 at 2014-07-06 16:41:44 -0500
11075
+ Processing by DeviseTokenAuth::AuthController#omniauth_success as HTML
11076
+ Parameters: {"state"=>"d6349f39ff362e2db613e3b20b58aa6b02332a740c8771f2", "code"=>"4/aOcjblEnWSk4kWSx8BjejOPFIbw4.Yu_HgBnCxZMfmmS0T3UFEsNI50MbjgI", "provider"=>"google_oauth2"}
11077
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' AND "users"."provider" = 'google_oauth2' AND "users"."email" = 'lynn.dylan.hurley@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
11078
+  (0.1ms) begin transaction
11079
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'lynn.dylan.hurley@gmail.com' LIMIT 1
11080
+ Binary data inserted for `string` type on column `encrypted_password`
11081
+ SQL (1.9ms) INSERT INTO "users" ("confirmed_at", "created_at", "email", "encrypted_password", "provider", "tokens", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["confirmed_at", "2014-07-06 21:41:45.828797"], ["created_at", "2014-07-06 21:41:45.965096"], ["email", "lynn.dylan.hurley@gmail.com"], ["encrypted_password", "$2a$10$k3biKBoqYylaAevBTZwiCupYOFCCSXYuchyh8G57q7fJUwMhfjWa2"], ["provider", "google_oauth2"], ["tokens", "{\"sxS_El2TfOGgvUvI6dJlnA\":{\"token\":\"$2a$10$RrZSrDlgL6rFnoAB/AlRGuOidr8dp.M5dDgX1Duiqkd/BW8264U.m\",\"expiry\":\"2014-07-20 16:41:45 -0500\"}}"], ["uid", "110417483437532545267"], ["updated_at", "2014-07-06 21:41:45.965096"]]
11082
+  (0.7ms) commit transaction
11083
+  (0.0ms) begin transaction
11084
+ SQL (0.2ms) UPDATE "users" SET "image" = ?, "name" = ?, "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 11 [["image", "https://lh6.googleusercontent.com/-3myFYp72z8g/AAAAAAAAAAI/AAAAAAAAA-I/p-MeOAkUzt0/photo.jpg?sz=50"], ["name", "Lynn Dylan Hurley"], ["tokens", "{\"sxS_El2TfOGgvUvI6dJlnA\":{\"token\":\"$2a$10$RrZSrDlgL6rFnoAB/AlRGuOidr8dp.M5dDgX1Duiqkd/BW8264U.m\",\"expiry\":\"2014-07-20 16:41:45 -0500\"}}"], ["updated_at", "2014-07-06 21:41:45.971466"]]
11085
+  (0.6ms) commit transaction
11086
+ Rendered /Users/lynnhurley/Code/Auth/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (1.1ms)
11087
+ Completed 200 OK in 170ms (Views: 7.2ms | ActiveRecord: 4.4ms)
11088
+
11089
+
11090
+ Started OPTIONS "/demo/members_only" for 127.0.0.1 at 2014-07-06 16:42:08 -0500
11091
+
11092
+
11093
+ Started GET "/demo/members_only" for 127.0.0.1 at 2014-07-06 16:42:08 -0500
11094
+ Processing by DemoController#members_only as HTML
11095
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
11096
+  (0.2ms) begin transaction
11097
+ SQL (0.4ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 11 [["tokens", "{\"sxS_El2TfOGgvUvI6dJlnA\":{\"token\":\"$2a$10$UbQMrHOCoH25MyBi5iZFQ.sMK3eoSKG16sAvYw4ZtYvRXwEH5pd56\",\"expiry\":\"2014-07-20 16:42:08 -0500\"}}"], ["updated_at", "2014-07-06 21:42:08.520354"]]
11098
+  (1.8ms) commit transaction
11099
+ Completed 200 OK in 127ms (Views: 0.9ms | ActiveRecord: 2.6ms)
11100
+
11101
+
11102
+ Started OPTIONS "/auth/validate_token" for 127.0.0.1 at 2014-07-06 16:42:18 -0500
11103
+
11104
+
11105
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-06 16:42:18 -0500
11106
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
11107
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
11108
+  (0.1ms) begin transaction
11109
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 11 [["tokens", "{\"sxS_El2TfOGgvUvI6dJlnA\":{\"token\":\"$2a$10$JguifE/5pqQNI0Q5PTIIN.5eOUsnXTUehTPQzLVGYzFLqB9yl3LBq\",\"expiry\":\"2014-07-20 16:42:18 -0500\"}}"], ["updated_at", "2014-07-06 21:42:18.952037"]]
11110
+  (0.5ms) commit transaction
11111
+ Completed 200 OK in 126ms (Views: 0.3ms | ActiveRecord: 1.1ms)
11112
+
11113
+
11114
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-06 16:42:21 -0500
11115
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
11116
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
11117
+  (0.1ms) begin transaction
11118
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 11 [["tokens", "{\"sxS_El2TfOGgvUvI6dJlnA\":{\"token\":\"$2a$10$zchXG7FAW/ypPOn3C6faDO7s9PShVA7zVwN4r/FtGFfEHZMItr96m\",\"expiry\":\"2014-07-20 16:42:21 -0500\"}}"], ["updated_at", "2014-07-06 21:42:21.479846"]]
11119
+  (1.7ms) commit transaction
11120
+ Completed 200 OK in 130ms (Views: 0.4ms | ActiveRecord: 2.3ms)
11121
+
11122
+
11123
+ Started GET "/auth/validate_token" for 127.0.0.1 at 2014-07-06 16:42:39 -0500
11124
+ Processing by DeviseTokenAuth::AuthController#validate_token as HTML
11125
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
11126
+  (0.1ms) begin transaction
11127
+ SQL (0.3ms) UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 11 [["tokens", "{\"sxS_El2TfOGgvUvI6dJlnA\":{\"token\":\"$2a$10$P8nkr6TVKEI5KicPkaxpR.KwnJt4FOKa9ae8/gLY3m8EIvi9pKG6i\",\"expiry\":\"2014-07-20 16:42:40 -0500\"}}"], ["updated_at", "2014-07-06 21:42:40.091389"]]
11128
+  (1.7ms) commit transaction
11129
+ Completed 200 OK in 132ms (Views: 0.4ms | ActiveRecord: 2.3ms)
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.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley