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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5940bd5f629bcdb628cf971bd84ad22dd69aa578
|
4
|
+
data.tar.gz: 6e13a7b2ed9e3c5f0560bd6a445b6e045799ba41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
53
|
-
name:
|
54
|
-
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
|
@@ -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-
|
12
|
-
GOOGLE_SECRET:
|
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
|
[1m[36mSQL (1.0ms)[0m [1mUPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = 10[0m [["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
|
[1m[35m (15.5ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
[1m[35mUser Load (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11079
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "users" ("confirmed_at", "created_at", "email", "encrypted_password", "provider", "tokens", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.7ms)[0m commit transaction
|
11083
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11084
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
|
11096
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
11097
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
|
11108
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11109
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
|
11117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11118
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = '110417483437532545267' LIMIT 1
|
11126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11127
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
11129
|
+
Completed 200 OK in 132ms (Views: 0.4ms | ActiveRecord: 2.3ms)
|