omniauth-aai 0.6.3 → 0.6.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/README.md +5 -15
- data/lib/generators/aai/setup_generator.rb +1 -1
- data/lib/generators/aai/templates/omniauth.rb +1 -1
- data/lib/generators/aai/templates/session_controller.rb +3 -4
- data/lib/generators/aai/templates/user.rb +6 -6
- data/lib/omniauth/strategies/aai.rb +28 -89
- data/lib/omniauth-aai/version.rb +1 -1
- data/spec/example_rails4_app/Gemfile.lock +1 -1
- data/spec/example_rails4_app/app/controllers/session_controller.rb +0 -8
- data/spec/example_rails4_app/app/models/user.rb +0 -4
- data/spec/example_rails4_app/config/initializers/omniauth.rb +1 -1
- data/spec/example_rails4_app/db/development.sqlite3 +0 -0
- data/spec/example_rails4_app/db/migrate/{20150609094544_create_aai_user.rb → 20150609123414_create_aai_user.rb} +0 -0
- data/spec/example_rails4_app/db/schema.rb +1 -1
- data/spec/example_rails4_app/log/development.log +757 -0
- metadata +3 -5
- data/spec/example_rails4_app/db/migrate/20150528142303_aai_create_user.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdae5549161cd845e70e3823576e1aae2b2c14b8
|
4
|
+
data.tar.gz: 771fecbecc7edb1190e24deb917b1672acb4d528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcf4a09e8dbae3baf2c51e326054a100fcb9a29acc9bdb65aa657202687ca4ed574219b7e27ec67140a90523417a931879029b8b6e22edd770e661052dae5ad2
|
7
|
+
data.tar.gz: 18311634f0456abae0de78c4ce713b5b14ca0b580cb6535bd57517e593a1171cdb1266c356480f7ad5db13b02f8b34e7d756be667f6f23deae857d856b827ad7
|
data/README.md
CHANGED
@@ -26,34 +26,24 @@ This will generate some basic authenthication objects for rails:
|
|
26
26
|
* config/initializers/omniauth.rb
|
27
27
|
* app/controller/session_controller.rb
|
28
28
|
* app/models/user.rb
|
29
|
-
* db/migrate
|
29
|
+
* db/migrate/<timestamp>_create_aai_user.rb
|
30
30
|
|
31
31
|
You can run it with '--persist false' if you don't want to persist the user to the local db.
|
32
32
|
|
33
|
-
If you want more than just the uid persisted, change the 'user.rb' and override the 'aai=' method to do so and the migration to add the columns.
|
34
|
-
|
35
|
-
```ruby
|
36
|
-
def aai=(aai)
|
37
|
-
self.email = auth_hash[:info][:email]
|
38
|
-
@aai = aai
|
39
|
-
end
|
40
|
-
```
|
41
|
-
|
42
33
|
### Additional Shibboleth attributes
|
43
34
|
|
44
|
-
By default, you will get all the
|
35
|
+
By default, you will get all the core SWITCHaai values, or you can configure it via options:
|
45
36
|
|
46
37
|
```ruby
|
47
38
|
# config/initializer/omniauth.rb
|
48
39
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
49
40
|
provider :aai,{
|
50
41
|
:uid_field => :'persistent-id',
|
51
|
-
:fields => [:name, :email, :unique_id],
|
52
42
|
:extra_fields => [:'Shib-Authentication-Instant']# See lib/omniauth/strategies/aai.rb for full list.
|
53
43
|
}
|
54
44
|
```
|
55
45
|
|
56
|
-
Fields are provided in the Env as request.env["omniauth.auth"]["info"]["name"] and extra_fields attributes are provided as ['extra']['raw_info']['Shib-Authentication-Instant'].
|
46
|
+
Fields are provided in the Env as request.env["omniauth.auth"]["info"]["name"] (or auth_hash.info.unique_id) and extra_fields attributes are provided as request.env["omniauth.auth"]['extra']['raw_info']['Shib-Authentication-Instant'].
|
57
47
|
|
58
48
|
|
59
49
|
### How to authenticate users
|
@@ -93,11 +83,11 @@ When you deploy a new application, you may want to confirm the assumed attribute
|
|
93
83
|
|
94
84
|
### Current User
|
95
85
|
|
96
|
-
|
86
|
+
In order for you to use the build in User object and the 'current_user' functionality, the has_current_user method has been added to the ApplicationController during the setup.
|
97
87
|
|
98
88
|
```ruby
|
99
89
|
class ApplicationController < ActionController::Base
|
100
|
-
protect_from_forgery
|
101
90
|
has_current_user
|
91
|
+
protect_from_forgery
|
102
92
|
end
|
103
93
|
```
|
@@ -18,7 +18,7 @@ module Aai
|
|
18
18
|
|
19
19
|
def copy_session_controller_file
|
20
20
|
if true
|
21
|
-
|
21
|
+
template "session_controller.rb", "app/controllers/session_controller.rb"
|
22
22
|
inject_into_class "app/controllers/application_controller.rb", ApplicationController, " has_current_user\n"
|
23
23
|
route("post '/auth/:provider/callback', to: 'session#create', as: 'auth_callback'")
|
24
24
|
route("get '/auth/failure', to: 'session#failure', as: 'auth_failure'")
|
@@ -3,15 +3,14 @@ class SessionController < ApplicationController
|
|
3
3
|
skip_before_filter :verify_authenticity_token, only: :create, if: Rails.env.development?
|
4
4
|
|
5
5
|
def create
|
6
|
-
|
7
|
-
<% if options[:persist] %>
|
6
|
+
<% if options[:persist] -%>
|
8
7
|
self.current_user = User.update_or_create_with_omniauth_aai(auth_hash)
|
9
|
-
|
8
|
+
<% else -%>
|
10
9
|
user = User.new
|
11
10
|
user.uid = auth_hash[:uid]
|
12
11
|
user.aai = auth_hash
|
13
12
|
self.current_user = user
|
14
|
-
|
13
|
+
<% end -%>
|
15
14
|
|
16
15
|
flash[:notice] = "Login successful"
|
17
16
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class User <%= options[:persist] ? "< ActiveRecord::Base" : "" %>
|
2
|
-
<% if options[:persist]
|
2
|
+
<% if options[:persist] -%>
|
3
3
|
# attr_accessible :uid
|
4
4
|
attr_accessor :aai
|
5
5
|
PERSISTENT = true
|
@@ -27,10 +27,10 @@ class User <%= options[:persist] ? "< ActiveRecord::Base" : "" %>
|
|
27
27
|
new
|
28
28
|
end
|
29
29
|
end
|
30
|
-
<% else
|
30
|
+
<% else -%>
|
31
31
|
attr_accessor :aai, :uid
|
32
32
|
PERSISTENT = false
|
33
|
-
<% end
|
33
|
+
<% end -%>
|
34
34
|
|
35
35
|
def name
|
36
36
|
aai[:info][:name]
|
@@ -44,7 +44,7 @@ class User <%= options[:persist] ? "< ActiveRecord::Base" : "" %>
|
|
44
44
|
nil
|
45
45
|
end
|
46
46
|
|
47
|
-
<% if options[:persist]
|
47
|
+
<% if options[:persist] -%>
|
48
48
|
def marshal
|
49
49
|
self.uid
|
50
50
|
end
|
@@ -56,7 +56,7 @@ class User <%= options[:persist] ? "< ActiveRecord::Base" : "" %>
|
|
56
56
|
def unmarshal(session_data)
|
57
57
|
self.reload
|
58
58
|
end
|
59
|
-
<% else
|
59
|
+
<% else -%>
|
60
60
|
def marshal
|
61
61
|
{
|
62
62
|
id: self.uid,
|
@@ -74,5 +74,5 @@ class User <%= options[:persist] ? "< ActiveRecord::Base" : "" %>
|
|
74
74
|
self.uid = session_data[:id]
|
75
75
|
self.aai = session_data[:aai]
|
76
76
|
end
|
77
|
-
|
77
|
+
<% end -%>
|
78
78
|
end
|
@@ -3,7 +3,6 @@ module OmniAuth
|
|
3
3
|
module Strategies
|
4
4
|
class Aai < OmniAuth::Strategies::Shibboleth
|
5
5
|
|
6
|
-
|
7
6
|
# 8 core attributes available for all users
|
8
7
|
CORE_ATTRIBUTES = {
|
9
8
|
unique_id: "uniqueID",
|
@@ -32,17 +31,12 @@ module OmniAuth
|
|
32
31
|
|
33
32
|
# DEFAULT_FIELDS = [:name, :email, :persistent_id, :unique_id]
|
34
33
|
DEFAULT_EXTRA_FIELDS = (SHIBBOLETH_ATTRIBUTES.keys)
|
35
|
-
# DEFAULT_EXTRA_FIELDS = (CORE_ATTRIBUTES.keys + SHIBBOLETH_ATTRIBUTES.keys)
|
36
34
|
|
37
35
|
option :uid_field, 'persistent-id'
|
38
36
|
option :name_field, 'displayName'
|
39
37
|
option :email_field, 'mail'
|
40
|
-
# option :fields, DEFAULT_FIELDS
|
41
|
-
# option :info_fields, {}
|
42
38
|
option :info_fields, CORE_ATTRIBUTES
|
43
39
|
option :extra_fields, DEFAULT_EXTRA_FIELDS
|
44
|
-
# option :aai_fields, CORE_ATTRIBUTES
|
45
|
-
# option :aai_extra_fields, SHIBBOLETH_ATTRIBUTES
|
46
40
|
|
47
41
|
# Attributes checked to find out if there is a valid shibboleth session
|
48
42
|
option :shib_session_id_field, 'Shib-Session-ID'
|
@@ -52,22 +46,6 @@ module OmniAuth
|
|
52
46
|
option :debug, false
|
53
47
|
|
54
48
|
|
55
|
-
# # # # #
|
56
|
-
# Helper Methods
|
57
|
-
# # # # #
|
58
|
-
|
59
|
-
# def aai_attributes
|
60
|
-
# options.aai_extra_fields.merge(options.aai_fields)
|
61
|
-
# end
|
62
|
-
|
63
|
-
# def read_env( attribute_key )
|
64
|
-
# ([attribute_key] + (aai_attributes[attribute_key] || [])).each do | a |
|
65
|
-
# v = request.env[a.to_s]
|
66
|
-
# return v unless v.nil? || v.strip == ""
|
67
|
-
# end
|
68
|
-
# end
|
69
|
-
|
70
|
-
|
71
49
|
def request_phase
|
72
50
|
[
|
73
51
|
302,
|
@@ -79,73 +57,34 @@ module OmniAuth
|
|
79
57
|
]
|
80
58
|
end
|
81
59
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
# ["!!!!! This message is generated by omniauth-aai. To remove it set :debug to false. !!!!!\n#{request_params.sort.map {|i| "#{i[0]}: #{i[1]}" }.join("\n")}"]
|
111
|
-
# ]
|
112
|
-
# end
|
113
|
-
# return fail!(:no_aai_session) unless (request_param(options.shib_session_id_field.to_s) || request_param(options.shib_application_id_field.to_s))
|
114
|
-
# super
|
115
|
-
# end
|
116
|
-
|
117
|
-
# def option_handler(option_field)
|
118
|
-
# if option_field.class == String ||
|
119
|
-
# option_field.class == Symbol
|
120
|
-
# request_param(option_field.to_s)
|
121
|
-
# elsif option_field.class == Proc
|
122
|
-
# option_field.call(self.method(:request_param))
|
123
|
-
# end
|
124
|
-
# end
|
125
|
-
|
126
|
-
# uid do
|
127
|
-
# option_handler(options.uid_field)
|
128
|
-
# # persistent-id is default uid
|
129
|
-
# # request.env[options.uid_field.to_s]
|
130
|
-
# end
|
131
|
-
|
132
|
-
# info do
|
133
|
-
# res = {
|
134
|
-
# name: option_handler(options.name_field),
|
135
|
-
# email: option_handler(options.email_field)
|
136
|
-
# }
|
137
|
-
# options.info_fields.each_pair do |key, field|
|
138
|
-
# res[key] = option_handler(field)
|
139
|
-
# end
|
140
|
-
# res
|
141
|
-
# end
|
142
|
-
|
143
|
-
# extra do
|
144
|
-
# options.extra_fields.inject({:raw_info => {}}) do |hash, field|
|
145
|
-
# hash[:raw_info][field] = request_param(field.to_s)
|
146
|
-
# hash
|
147
|
-
# end
|
148
|
-
# end
|
60
|
+
def request_params
|
61
|
+
super
|
62
|
+
end
|
63
|
+
|
64
|
+
def request_param(key)
|
65
|
+
super
|
66
|
+
end
|
67
|
+
|
68
|
+
def callback_phase
|
69
|
+
super
|
70
|
+
end
|
71
|
+
|
72
|
+
def option_handler(option_field)
|
73
|
+
super
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
uid do
|
78
|
+
option_handler(options.uid_field)
|
79
|
+
end
|
80
|
+
|
81
|
+
info do
|
82
|
+
super
|
83
|
+
end
|
84
|
+
|
85
|
+
extra do
|
86
|
+
super
|
87
|
+
end
|
149
88
|
|
150
89
|
end
|
151
90
|
end
|
data/lib/omniauth-aai/version.rb
CHANGED
@@ -3,15 +3,7 @@ class SessionController < ApplicationController
|
|
3
3
|
skip_before_filter :verify_authenticity_token, only: :create, if: Rails.env.development?
|
4
4
|
|
5
5
|
def create
|
6
|
-
|
7
|
-
<% if options[:persist] %>
|
8
6
|
self.current_user = User.update_or_create_with_omniauth_aai(auth_hash)
|
9
|
-
<% else %>
|
10
|
-
user = User.new
|
11
|
-
user.uid = auth_hash[:uid]
|
12
|
-
user.aai = auth_hash
|
13
|
-
self.current_user = user
|
14
|
-
<% end %>
|
15
7
|
|
16
8
|
flash[:notice] = "Login successful"
|
17
9
|
|
@@ -1,5 +1,4 @@
|
|
1
1
|
class User < ActiveRecord::Base
|
2
|
-
|
3
2
|
# attr_accessible :uid
|
4
3
|
attr_accessor :aai
|
5
4
|
PERSISTENT = true
|
@@ -28,7 +27,6 @@ class User < ActiveRecord::Base
|
|
28
27
|
end
|
29
28
|
end
|
30
29
|
|
31
|
-
|
32
30
|
def name
|
33
31
|
aai[:info][:name]
|
34
32
|
rescue
|
@@ -41,7 +39,6 @@ class User < ActiveRecord::Base
|
|
41
39
|
nil
|
42
40
|
end
|
43
41
|
|
44
|
-
|
45
42
|
def marshal
|
46
43
|
self.uid
|
47
44
|
end
|
@@ -53,5 +50,4 @@ class User < ActiveRecord::Base
|
|
53
50
|
def unmarshal(session_data)
|
54
51
|
self.reload
|
55
52
|
end
|
56
|
-
|
57
53
|
end
|
Binary file
|
File without changes
|
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20150609123414) do
|
15
15
|
|
16
16
|
create_table "users", force: :cascade do |t|
|
17
17
|
t.string "uid"
|
@@ -7187,3 +7187,760 @@ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `n
|
|
7187
7187
|
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime) [0m
|
7188
7188
|
SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime)
|
7189
7189
|
[1m[35m (0.1ms)[0m rollback transaction
|
7190
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7191
|
+
Migrating to CreateAaiUser (20150609094544)
|
7192
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7193
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/db/migrate/20150609094544_create_aai_user.rb:13)
|
7194
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime) [0m
|
7195
|
+
SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime)
|
7196
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7197
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7198
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7199
|
+
Migrating to AaiCreateUser (20150528142303)
|
7200
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7201
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
7202
|
+
FROM sqlite_master
|
7203
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7204
|
+
UNION ALL
|
7205
|
+
SELECT sql
|
7206
|
+
FROM sqlite_temp_master
|
7207
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7208
|
+
|
7209
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7210
|
+
FROM sqlite_master
|
7211
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7212
|
+
UNION ALL
|
7213
|
+
SELECT sql
|
7214
|
+
FROM sqlite_temp_master
|
7215
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7216
|
+
[0m
|
7217
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7218
|
+
FROM sqlite_master
|
7219
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7220
|
+
UNION ALL
|
7221
|
+
SELECT sql
|
7222
|
+
FROM sqlite_temp_master
|
7223
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7224
|
+
|
7225
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_users_on_persistent_id"[0m
|
7226
|
+
[1m[35m (0.0ms)[0m SELECT sql
|
7227
|
+
FROM sqlite_master
|
7228
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7229
|
+
UNION ALL
|
7230
|
+
SELECT sql
|
7231
|
+
FROM sqlite_temp_master
|
7232
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7233
|
+
|
7234
|
+
[1m[36m (0.0ms)[0m [1m SELECT sql
|
7235
|
+
FROM sqlite_master
|
7236
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7237
|
+
UNION ALL
|
7238
|
+
SELECT sql
|
7239
|
+
FROM sqlite_temp_master
|
7240
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7241
|
+
[0m
|
7242
|
+
[1m[35m (1.1ms)[0m DROP INDEX "index_users_on_unique_id"
|
7243
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7244
|
+
FROM sqlite_master
|
7245
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7246
|
+
UNION ALL
|
7247
|
+
SELECT sql
|
7248
|
+
FROM sqlite_temp_master
|
7249
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7250
|
+
[0m
|
7251
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_users_on_uid"
|
7252
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "users"[0m
|
7253
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20150528142303"]]
|
7254
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
7255
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7256
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7257
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7258
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7259
|
+
Migrating to CreateAaiUser (20150609114200)
|
7260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7261
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/db/migrate/20150609114200_create_aai_user.rb:13)
|
7262
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime) [0m
|
7263
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
7264
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")[0m
|
7265
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7266
|
+
FROM sqlite_master
|
7267
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7268
|
+
UNION ALL
|
7269
|
+
SELECT sql
|
7270
|
+
FROM sqlite_temp_master
|
7271
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7272
|
+
|
7273
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_unique_id" ON "users" ("unique_id")[0m
|
7274
|
+
[1m[35m (0.0ms)[0m SELECT sql
|
7275
|
+
FROM sqlite_master
|
7276
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7277
|
+
UNION ALL
|
7278
|
+
SELECT sql
|
7279
|
+
FROM sqlite_temp_master
|
7280
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7281
|
+
|
7282
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7283
|
+
FROM sqlite_master
|
7284
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7285
|
+
UNION ALL
|
7286
|
+
SELECT sql
|
7287
|
+
FROM sqlite_temp_master
|
7288
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7289
|
+
[0m
|
7290
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_persistent_id" ON "users" ("persistent_id")
|
7291
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150609114200"]]
|
7292
|
+
[1m[35m (0.9ms)[0m commit transaction
|
7293
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7294
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7295
|
+
FROM sqlite_master
|
7296
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7297
|
+
UNION ALL
|
7298
|
+
SELECT sql
|
7299
|
+
FROM sqlite_temp_master
|
7300
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7301
|
+
|
7302
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7303
|
+
FROM sqlite_master
|
7304
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7305
|
+
UNION ALL
|
7306
|
+
SELECT sql
|
7307
|
+
FROM sqlite_temp_master
|
7308
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7309
|
+
[0m
|
7310
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7311
|
+
FROM sqlite_master
|
7312
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7313
|
+
UNION ALL
|
7314
|
+
SELECT sql
|
7315
|
+
FROM sqlite_temp_master
|
7316
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7317
|
+
|
7318
|
+
|
7319
|
+
|
7320
|
+
Started GET "/" for ::1 at 2015-06-09 13:42:16 +0200
|
7321
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7322
|
+
Processing by WelcomeController#index as HTML
|
7323
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1 [["uid", "persi"]]
|
7324
|
+
Rendered welcome/index.html.erb within layouts/application (11.9ms)
|
7325
|
+
Completed 200 OK in 217ms (Views: 207.8ms | ActiveRecord: 0.3ms)
|
7326
|
+
|
7327
|
+
|
7328
|
+
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-09 13:42:16 +0200
|
7329
|
+
|
7330
|
+
|
7331
|
+
Started GET "/assets/jquery.self-d03a5518f45df77341bdbe6201ba3bfa547ebba8ed64f0ea56bfa5f96ea7c074.js?body=1" for ::1 at 2015-06-09 13:42:16 +0200
|
7332
|
+
|
7333
|
+
|
7334
|
+
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for ::1 at 2015-06-09 13:42:16 +0200
|
7335
|
+
|
7336
|
+
|
7337
|
+
Started GET "/assets/jquery_ujs.self-8e98a7a072a6cee1372d19fff9ff3e6aa1e39a37d89d6f06861637d061113ee7.js?body=1" for ::1 at 2015-06-09 13:42:16 +0200
|
7338
|
+
|
7339
|
+
|
7340
|
+
Started GET "/assets/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for ::1 at 2015-06-09 13:42:16 +0200
|
7341
|
+
|
7342
|
+
|
7343
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:42:18 +0200
|
7344
|
+
Processing by WelcomeController#protected as HTML
|
7345
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1[0m [["uid", "persi"]]
|
7346
|
+
Redirected to http://localhost:3000/auth/developer
|
7347
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7348
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
7349
|
+
|
7350
|
+
|
7351
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:42:18 +0200
|
7352
|
+
|
7353
|
+
|
7354
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:42:18 +0200
|
7355
|
+
Processing by WelcomeController#protected as HTML
|
7356
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1 [["uid", "persi"]]
|
7357
|
+
Redirected to http://localhost:3000/auth/developer
|
7358
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7359
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
7360
|
+
|
7361
|
+
|
7362
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:42:18 +0200
|
7363
|
+
|
7364
|
+
|
7365
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:42:30 +0200
|
7366
|
+
|
7367
|
+
SyntaxError (/Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/app/controllers/session_controller.rb:7: syntax error, unexpected '<'
|
7368
|
+
<% if options[:persist] %>
|
7369
|
+
^
|
7370
|
+
/Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/app/controllers/session_controller.rb:7: syntax error, unexpected tIDENTIFIER, expecting keyword_end
|
7371
|
+
<% if options[:persist] %>
|
7372
|
+
^
|
7373
|
+
/Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/app/controllers/session_controller.rb:7: syntax error, unexpected '>'
|
7374
|
+
/Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/app/controllers/session_controller.rb:9: syntax error, unexpected '<', expecting keyword_end
|
7375
|
+
<% else %>
|
7376
|
+
^
|
7377
|
+
/Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/app/controllers/session_controller.rb:9: syntax error, unexpected '>'
|
7378
|
+
/Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/app/controllers/session_controller.rb:14: syntax error, unexpected '<', expecting keyword_end
|
7379
|
+
<% end %>
|
7380
|
+
^
|
7381
|
+
/Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/app/controllers/session_controller.rb:14: syntax error, unexpected '>'):
|
7382
|
+
app/controllers/session_controller.rb:7: syntax error, unexpected '<'
|
7383
|
+
app/controllers/session_controller.rb:7: syntax error, unexpected tIDENTIFIER, expecting keyword_end
|
7384
|
+
app/controllers/session_controller.rb:7: syntax error, unexpected '>'
|
7385
|
+
app/controllers/session_controller.rb:9: syntax error, unexpected '<', expecting keyword_end
|
7386
|
+
app/controllers/session_controller.rb:9: syntax error, unexpected '>'
|
7387
|
+
app/controllers/session_controller.rb:14: syntax error, unexpected '<', expecting keyword_end
|
7388
|
+
app/controllers/session_controller.rb:14: syntax error, unexpected '>'
|
7389
|
+
|
7390
|
+
|
7391
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms)
|
7392
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
|
7393
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
|
7394
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (71.5ms)
|
7395
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_markup.html.erb (0.4ms)
|
7396
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms)
|
7397
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.3ms)
|
7398
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.4ms)
|
7399
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/console.js.erb within layouts/javascript (60.0ms)
|
7400
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb within layouts/javascript (0.4ms)
|
7401
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
|
7402
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/index.html.erb (143.5ms)
|
7403
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7404
|
+
Migrating to CreateAaiUser (20150609114401)
|
7405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7406
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/db/migrate/20150609114401_create_aai_user.rb:13)
|
7407
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime) [0m
|
7408
|
+
SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime)
|
7409
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7410
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7411
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7412
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7413
|
+
FROM sqlite_master
|
7414
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7415
|
+
UNION ALL
|
7416
|
+
SELECT sql
|
7417
|
+
FROM sqlite_temp_master
|
7418
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7419
|
+
[0m
|
7420
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7421
|
+
FROM sqlite_master
|
7422
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7423
|
+
UNION ALL
|
7424
|
+
SELECT sql
|
7425
|
+
FROM sqlite_temp_master
|
7426
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7427
|
+
|
7428
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7429
|
+
FROM sqlite_master
|
7430
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7431
|
+
UNION ALL
|
7432
|
+
SELECT sql
|
7433
|
+
FROM sqlite_temp_master
|
7434
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7435
|
+
[0m
|
7436
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7437
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7438
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7439
|
+
FROM sqlite_master
|
7440
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7441
|
+
UNION ALL
|
7442
|
+
SELECT sql
|
7443
|
+
FROM sqlite_temp_master
|
7444
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7445
|
+
[0m
|
7446
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7447
|
+
FROM sqlite_master
|
7448
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7449
|
+
UNION ALL
|
7450
|
+
SELECT sql
|
7451
|
+
FROM sqlite_temp_master
|
7452
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7453
|
+
|
7454
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7455
|
+
FROM sqlite_master
|
7456
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7457
|
+
UNION ALL
|
7458
|
+
SELECT sql
|
7459
|
+
FROM sqlite_temp_master
|
7460
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7461
|
+
[0m
|
7462
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7463
|
+
Migrating to CreateAaiUser (20150609114810)
|
7464
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7465
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/db/migrate/20150609114810_create_aai_user.rb:13)
|
7466
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime) [0m
|
7467
|
+
SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime)
|
7468
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7469
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7470
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7471
|
+
FROM sqlite_master
|
7472
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7473
|
+
UNION ALL
|
7474
|
+
SELECT sql
|
7475
|
+
FROM sqlite_temp_master
|
7476
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7477
|
+
|
7478
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7479
|
+
FROM sqlite_master
|
7480
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7481
|
+
UNION ALL
|
7482
|
+
SELECT sql
|
7483
|
+
FROM sqlite_temp_master
|
7484
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7485
|
+
[0m
|
7486
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7487
|
+
FROM sqlite_master
|
7488
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7489
|
+
UNION ALL
|
7490
|
+
SELECT sql
|
7491
|
+
FROM sqlite_temp_master
|
7492
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7493
|
+
|
7494
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7495
|
+
Migrating to CreateAaiUser (20150609114920)
|
7496
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7497
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/db/migrate/20150609114920_create_aai_user.rb:13)
|
7498
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime) [0m
|
7499
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
7500
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")[0m
|
7501
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7502
|
+
FROM sqlite_master
|
7503
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7504
|
+
UNION ALL
|
7505
|
+
SELECT sql
|
7506
|
+
FROM sqlite_temp_master
|
7507
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7508
|
+
|
7509
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_unique_id" ON "users" ("unique_id")[0m
|
7510
|
+
[1m[35m (0.0ms)[0m SELECT sql
|
7511
|
+
FROM sqlite_master
|
7512
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7513
|
+
UNION ALL
|
7514
|
+
SELECT sql
|
7515
|
+
FROM sqlite_temp_master
|
7516
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7517
|
+
|
7518
|
+
[1m[36m (0.0ms)[0m [1m SELECT sql
|
7519
|
+
FROM sqlite_master
|
7520
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7521
|
+
UNION ALL
|
7522
|
+
SELECT sql
|
7523
|
+
FROM sqlite_temp_master
|
7524
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7525
|
+
[0m
|
7526
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_persistent_id" ON "users" ("persistent_id")
|
7527
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150609114920"]]
|
7528
|
+
[1m[35m (1.0ms)[0m commit transaction
|
7529
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7530
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7531
|
+
FROM sqlite_master
|
7532
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7533
|
+
UNION ALL
|
7534
|
+
SELECT sql
|
7535
|
+
FROM sqlite_temp_master
|
7536
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7537
|
+
|
7538
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7539
|
+
FROM sqlite_master
|
7540
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7541
|
+
UNION ALL
|
7542
|
+
SELECT sql
|
7543
|
+
FROM sqlite_temp_master
|
7544
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7545
|
+
[0m
|
7546
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7547
|
+
FROM sqlite_master
|
7548
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7549
|
+
UNION ALL
|
7550
|
+
SELECT sql
|
7551
|
+
FROM sqlite_temp_master
|
7552
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7553
|
+
|
7554
|
+
|
7555
|
+
|
7556
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:49:47 +0200
|
7557
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7558
|
+
Processing by SessionController#create as HTML
|
7559
|
+
Parameters: {"name"=>"Vornam Nachn", "email"=>"email@swihc.h", "persistent_id"=>"persi", "unique_id"=>"uniqu", "provider"=>"developer"}
|
7560
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7561
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["unique_id", "uniqu"], ["persistent_id", "persi"], ["email", "email@swihc.h"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"Vornam Nachn\", \"email\"=>\"email@swihc.h\", \"persistent_id\"=>\"persi\", \"unique_id\"=>\"uniqu\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 11:49:47.694602"], ["updated_at", "2015-06-09 11:49:47.694602"]]
|
7562
|
+
[1m[35m (0.8ms)[0m commit transaction
|
7563
|
+
Redirected to http://localhost:3000/welcome/protected
|
7564
|
+
Completed 302 Found in 15ms (ActiveRecord: 1.7ms)
|
7565
|
+
|
7566
|
+
|
7567
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:49:47 +0200
|
7568
|
+
Processing by WelcomeController#protected as HTML
|
7569
|
+
Redirected to http://localhost:3000/auth/developer
|
7570
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7571
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7572
|
+
|
7573
|
+
|
7574
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:49:47 +0200
|
7575
|
+
|
7576
|
+
|
7577
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:49:55 +0200
|
7578
|
+
Processing by SessionController#create as HTML
|
7579
|
+
Parameters: {"name"=>"Vornam Nam", "email"=>"email", "persistent_id"=>"pesi", "unique_id"=>"uniq", "provider"=>"developer"}
|
7580
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7581
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["unique_id", "uniq"], ["persistent_id", "pesi"], ["email", "email"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"Vornam Nam\", \"email\"=>\"email\", \"persistent_id\"=>\"pesi\", \"unique_id\"=>\"uniq\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 11:49:55.616680"], ["updated_at", "2015-06-09 11:49:55.616680"]]
|
7582
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
7583
|
+
Redirected to http://localhost:3000/welcome/protected
|
7584
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
|
7585
|
+
|
7586
|
+
|
7587
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:49:55 +0200
|
7588
|
+
Processing by WelcomeController#protected as HTML
|
7589
|
+
Redirected to http://localhost:3000/auth/developer
|
7590
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7591
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7592
|
+
|
7593
|
+
|
7594
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:49:55 +0200
|
7595
|
+
|
7596
|
+
|
7597
|
+
Started GET "/" for ::1 at 2015-06-09 13:50:02 +0200
|
7598
|
+
Processing by WelcomeController#index as HTML
|
7599
|
+
Rendered welcome/index.html.erb within layouts/application (2.4ms)
|
7600
|
+
Completed 200 OK in 198ms (Views: 197.1ms | ActiveRecord: 0.0ms)
|
7601
|
+
|
7602
|
+
|
7603
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:50:04 +0200
|
7604
|
+
Processing by WelcomeController#protected as HTML
|
7605
|
+
Redirected to http://localhost:3000/auth/developer
|
7606
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7607
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7608
|
+
|
7609
|
+
|
7610
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:50:04 +0200
|
7611
|
+
|
7612
|
+
|
7613
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:50:04 +0200
|
7614
|
+
Processing by WelcomeController#protected as HTML
|
7615
|
+
Redirected to http://localhost:3000/auth/developer
|
7616
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7617
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7618
|
+
|
7619
|
+
|
7620
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:50:04 +0200
|
7621
|
+
|
7622
|
+
|
7623
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:50:09 +0200
|
7624
|
+
Processing by SessionController#create as HTML
|
7625
|
+
Parameters: {"name"=>"name", "email"=>"email", "persistent_id"=>"persi", "unique_id"=>"uniq", "provider"=>"developer"}
|
7626
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7627
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["unique_id", "uniq"], ["persistent_id", "persi"], ["email", "email"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"name\", \"email\"=>\"email\", \"persistent_id\"=>\"persi\", \"unique_id\"=>\"uniq\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 11:50:09.999512"], ["updated_at", "2015-06-09 11:50:09.999512"]]
|
7628
|
+
SQLite3::ConstraintException: column persistent_id is not unique: INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)
|
7629
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7630
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.9ms)
|
7631
|
+
|
7632
|
+
ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: column persistent_id is not unique: INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)):
|
7633
|
+
app/models/user.rb:18:in `update_or_create_with_omniauth_aai'
|
7634
|
+
app/controllers/session_controller.rb:6:in `create'
|
7635
|
+
|
7636
|
+
|
7637
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.0ms)
|
7638
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.5ms)
|
7639
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
|
7640
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (66.1ms)
|
7641
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_markup.html.erb (0.4ms)
|
7642
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms)
|
7643
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.2ms)
|
7644
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.2ms)
|
7645
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/console.js.erb within layouts/javascript (52.1ms)
|
7646
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb within layouts/javascript (0.5ms)
|
7647
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
|
7648
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/index.html.erb (121.0ms)
|
7649
|
+
|
7650
|
+
|
7651
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:50:34 +0200
|
7652
|
+
Processing by SessionController#create as HTML
|
7653
|
+
Parameters: {"name"=>"name", "email"=>"email", "persistent_id"=>"persi", "unique_id"=>"uniq", "provider"=>"developer"}
|
7654
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7655
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["unique_id", "uniq"], ["persistent_id", "persi"], ["email", "email"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"name\", \"email\"=>\"email\", \"persistent_id\"=>\"persi\", \"unique_id\"=>\"uniq\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 11:50:34.738998"], ["updated_at", "2015-06-09 11:50:34.738998"]]
|
7656
|
+
SQLite3::ConstraintException: column persistent_id is not unique: INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)
|
7657
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7658
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.8ms)
|
7659
|
+
|
7660
|
+
ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: column persistent_id is not unique: INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)):
|
7661
|
+
app/models/user.rb:18:in `update_or_create_with_omniauth_aai'
|
7662
|
+
app/controllers/session_controller.rb:6:in `create'
|
7663
|
+
|
7664
|
+
|
7665
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.2ms)
|
7666
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
|
7667
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
|
7668
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.5ms)
|
7669
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_markup.html.erb (0.3ms)
|
7670
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms)
|
7671
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.3ms)
|
7672
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms)
|
7673
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/console.js.erb within layouts/javascript (49.5ms)
|
7674
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
|
7675
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
|
7676
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/index.html.erb (111.7ms)
|
7677
|
+
|
7678
|
+
|
7679
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:50:41 +0200
|
7680
|
+
Processing by SessionController#create as HTML
|
7681
|
+
Parameters: {"name"=>"name", "email"=>"email", "persistent_id"=>"persis", "unique_id"=>"uniq", "provider"=>"developer"}
|
7682
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7683
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["unique_id", "uniq"], ["persistent_id", "persis"], ["email", "email"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"name\", \"email\"=>\"email\", \"persistent_id\"=>\"persis\", \"unique_id\"=>\"uniq\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 11:50:41.945483"], ["updated_at", "2015-06-09 11:50:41.945483"]]
|
7684
|
+
SQLite3::ConstraintException: column unique_id is not unique: INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)
|
7685
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7686
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.9ms)
|
7687
|
+
|
7688
|
+
ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: column unique_id is not unique: INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)):
|
7689
|
+
app/models/user.rb:18:in `update_or_create_with_omniauth_aai'
|
7690
|
+
app/controllers/session_controller.rb:6:in `create'
|
7691
|
+
|
7692
|
+
|
7693
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.7ms)
|
7694
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.8ms)
|
7695
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
|
7696
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (63.4ms)
|
7697
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_markup.html.erb (0.2ms)
|
7698
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms)
|
7699
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.2ms)
|
7700
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms)
|
7701
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/console.js.erb within layouts/javascript (48.5ms)
|
7702
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
|
7703
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
|
7704
|
+
Rendered /Users/rohrer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/index.html.erb (107.0ms)
|
7705
|
+
|
7706
|
+
|
7707
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:50:49 +0200
|
7708
|
+
Processing by SessionController#create as HTML
|
7709
|
+
Parameters: {"name"=>"name", "email"=>"email", "persistent_id"=>"persiss", "unique_id"=>"uniqerer", "provider"=>"developer"}
|
7710
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7711
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["unique_id", "uniqerer"], ["persistent_id", "persiss"], ["email", "email"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"name\", \"email\"=>\"email\", \"persistent_id\"=>\"persiss\", \"unique_id\"=>\"uniqerer\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 11:50:49.754274"], ["updated_at", "2015-06-09 11:50:49.754274"]]
|
7712
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
7713
|
+
Redirected to http://localhost:3000/welcome/protected
|
7714
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
|
7715
|
+
|
7716
|
+
|
7717
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:50:49 +0200
|
7718
|
+
Processing by WelcomeController#protected as HTML
|
7719
|
+
Redirected to http://localhost:3000/auth/developer
|
7720
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7721
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7722
|
+
|
7723
|
+
|
7724
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:50:49 +0200
|
7725
|
+
|
7726
|
+
|
7727
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 13:51:11 +0200
|
7728
|
+
Processing by SessionController#create as HTML
|
7729
|
+
Parameters: {"name"=>"vrnm", "email"=>"ml", "persistent_id"=>"pr", "unique_id"=>"nq", "provider"=>"developer"}
|
7730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7731
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["unique_id", "nq"], ["persistent_id", "pr"], ["email", "ml"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"vrnm\", \"email\"=>\"ml\", \"persistent_id\"=>\"pr\", \"unique_id\"=>\"nq\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 11:51:11.853614"], ["updated_at", "2015-06-09 11:51:11.853614"]]
|
7732
|
+
[1m[35m (7.3ms)[0m commit transaction
|
7733
|
+
Redirected to http://localhost:3000/welcome/protected
|
7734
|
+
Completed 302 Found in 11ms (ActiveRecord: 7.6ms)
|
7735
|
+
|
7736
|
+
|
7737
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 13:51:11 +0200
|
7738
|
+
Processing by WelcomeController#protected as HTML
|
7739
|
+
Redirected to http://localhost:3000/auth/developer
|
7740
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7741
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7742
|
+
|
7743
|
+
|
7744
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 13:51:11 +0200
|
7745
|
+
|
7746
|
+
|
7747
|
+
Started GET "/" for ::1 at 2015-06-09 14:30:51 +0200
|
7748
|
+
Processing by WelcomeController#index as HTML
|
7749
|
+
Rendered welcome/index.html.erb within layouts/application (0.3ms)
|
7750
|
+
Completed 200 OK in 28ms (Views: 27.5ms | ActiveRecord: 0.0ms)
|
7751
|
+
|
7752
|
+
|
7753
|
+
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2015-06-09 14:30:51 +0200
|
7754
|
+
|
7755
|
+
|
7756
|
+
Started GET "/assets/jquery.self-d03a5518f45df77341bdbe6201ba3bfa547ebba8ed64f0ea56bfa5f96ea7c074.js?body=1" for ::1 at 2015-06-09 14:30:51 +0200
|
7757
|
+
|
7758
|
+
|
7759
|
+
Started GET "/assets/jquery_ujs.self-8e98a7a072a6cee1372d19fff9ff3e6aa1e39a37d89d6f06861637d061113ee7.js?body=1" for ::1 at 2015-06-09 14:30:51 +0200
|
7760
|
+
|
7761
|
+
|
7762
|
+
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for ::1 at 2015-06-09 14:30:51 +0200
|
7763
|
+
|
7764
|
+
|
7765
|
+
Started GET "/assets/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for ::1 at 2015-06-09 14:30:51 +0200
|
7766
|
+
|
7767
|
+
|
7768
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 14:30:52 +0200
|
7769
|
+
Processing by WelcomeController#protected as HTML
|
7770
|
+
Redirected to http://localhost:3000/auth/developer
|
7771
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7772
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7773
|
+
|
7774
|
+
|
7775
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 14:30:52 +0200
|
7776
|
+
|
7777
|
+
|
7778
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 14:30:52 +0200
|
7779
|
+
Processing by WelcomeController#protected as HTML
|
7780
|
+
Redirected to http://localhost:3000/auth/developer
|
7781
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7782
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7783
|
+
|
7784
|
+
|
7785
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 14:30:53 +0200
|
7786
|
+
|
7787
|
+
|
7788
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 14:32:19 +0200
|
7789
|
+
|
7790
|
+
|
7791
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 14:32:27 +0200
|
7792
|
+
Processing by SessionController#create as HTML
|
7793
|
+
Parameters: {"name"=>"nam", "email"=>"em", "persistent_id"=>"per", "unique_id"=>"uni", "provider"=>"developer"}
|
7794
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7795
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["unique_id", "uni"], ["persistent_id", "per"], ["email", "em"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>nil, \"info\"=>{\"name\"=>\"nam\", \"email\"=>\"em\", \"persistent_id\"=>\"per\", \"unique_id\"=>\"uni\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 12:32:27.901839"], ["updated_at", "2015-06-09 12:32:27.901839"]]
|
7796
|
+
[1m[36m (6.9ms)[0m [1mcommit transaction[0m
|
7797
|
+
Redirected to http://localhost:3000/welcome/protected
|
7798
|
+
Completed 302 Found in 11ms (ActiveRecord: 7.5ms)
|
7799
|
+
|
7800
|
+
|
7801
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 14:32:27 +0200
|
7802
|
+
Processing by WelcomeController#protected as HTML
|
7803
|
+
Redirected to http://localhost:3000/auth/developer
|
7804
|
+
Filter chain halted as :authenticate! rendered or redirected
|
7805
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7806
|
+
|
7807
|
+
|
7808
|
+
Started GET "/auth/developer" for ::1 at 2015-06-09 14:32:27 +0200
|
7809
|
+
|
7810
|
+
|
7811
|
+
Started POST "/auth/developer/callback" for ::1 at 2015-06-09 14:32:41 +0200
|
7812
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7813
|
+
Processing by SessionController#create as HTML
|
7814
|
+
Parameters: {"name"=>"nam", "email"=>"em", "persistent_id"=>"p", "unique_id"=>"u", "provider"=>"developer"}
|
7815
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "p"]]
|
7816
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7817
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("uid", "unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "p"], ["unique_id", "u"], ["persistent_id", "p"], ["email", "em"], ["raw_data", "{\"provider\"=>\"developer\", \"uid\"=>\"p\", \"info\"=>{\"name\"=>\"nam\", \"email\"=>\"em\", \"persistent_id\"=>\"p\", \"unique_id\"=>\"u\"}, \"credentials\"=>{}, \"extra\"=>{}}"], ["created_at", "2015-06-09 12:32:41.537912"], ["updated_at", "2015-06-09 12:32:41.537912"]]
|
7818
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
7819
|
+
Redirected to http://localhost:3000/welcome/protected
|
7820
|
+
Completed 302 Found in 26ms (ActiveRecord: 2.1ms)
|
7821
|
+
|
7822
|
+
|
7823
|
+
Started GET "/welcome/protected" for ::1 at 2015-06-09 14:32:41 +0200
|
7824
|
+
Processing by WelcomeController#protected as HTML
|
7825
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1 [["uid", "p"]]
|
7826
|
+
Rendered welcome/protected.html.erb within layouts/application (2.6ms)
|
7827
|
+
Completed 200 OK in 186ms (Views: 182.3ms | ActiveRecord: 0.2ms)
|
7828
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7829
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7830
|
+
Migrating to CreateAaiUser (20150609114920)
|
7831
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7832
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7833
|
+
FROM sqlite_master
|
7834
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7835
|
+
UNION ALL
|
7836
|
+
SELECT sql
|
7837
|
+
FROM sqlite_temp_master
|
7838
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7839
|
+
|
7840
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7841
|
+
FROM sqlite_master
|
7842
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7843
|
+
UNION ALL
|
7844
|
+
SELECT sql
|
7845
|
+
FROM sqlite_temp_master
|
7846
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7847
|
+
[0m
|
7848
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7849
|
+
FROM sqlite_master
|
7850
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7851
|
+
UNION ALL
|
7852
|
+
SELECT sql
|
7853
|
+
FROM sqlite_temp_master
|
7854
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7855
|
+
|
7856
|
+
[1m[36m (0.4ms)[0m [1mDROP INDEX "index_users_on_persistent_id"[0m
|
7857
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7858
|
+
FROM sqlite_master
|
7859
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7860
|
+
UNION ALL
|
7861
|
+
SELECT sql
|
7862
|
+
FROM sqlite_temp_master
|
7863
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7864
|
+
|
7865
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7866
|
+
FROM sqlite_master
|
7867
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7868
|
+
UNION ALL
|
7869
|
+
SELECT sql
|
7870
|
+
FROM sqlite_temp_master
|
7871
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7872
|
+
[0m
|
7873
|
+
[1m[35m (0.8ms)[0m DROP INDEX "index_users_on_unique_id"
|
7874
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7875
|
+
FROM sqlite_master
|
7876
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7877
|
+
UNION ALL
|
7878
|
+
SELECT sql
|
7879
|
+
FROM sqlite_temp_master
|
7880
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7881
|
+
[0m
|
7882
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_users_on_uid"
|
7883
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "users"[0m
|
7884
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20150609114920"]]
|
7885
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
7886
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7887
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7888
|
+
Migrating to CreateAaiUser (20150609123414)
|
7889
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7890
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/rohrer/coding/ruby/switch/aai/omniauth-aai/spec/example_rails4_app/db/migrate/20150609123414_create_aai_user.rb:13)
|
7891
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uid" varchar, "unique_id" varchar, "persistent_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "home_organization" varchar, "raw_data" text, "created_at" datetime, "updated_at" datetime) [0m
|
7892
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
7893
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")[0m
|
7894
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7895
|
+
FROM sqlite_master
|
7896
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7897
|
+
UNION ALL
|
7898
|
+
SELECT sql
|
7899
|
+
FROM sqlite_temp_master
|
7900
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7901
|
+
|
7902
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_unique_id" ON "users" ("unique_id")[0m
|
7903
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7904
|
+
FROM sqlite_master
|
7905
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7906
|
+
UNION ALL
|
7907
|
+
SELECT sql
|
7908
|
+
FROM sqlite_temp_master
|
7909
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7910
|
+
|
7911
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7912
|
+
FROM sqlite_master
|
7913
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7914
|
+
UNION ALL
|
7915
|
+
SELECT sql
|
7916
|
+
FROM sqlite_temp_master
|
7917
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7918
|
+
[0m
|
7919
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_persistent_id" ON "users" ("persistent_id")
|
7920
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150609123414"]]
|
7921
|
+
[1m[35m (1.0ms)[0m commit transaction
|
7922
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7923
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7924
|
+
FROM sqlite_master
|
7925
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7926
|
+
UNION ALL
|
7927
|
+
SELECT sql
|
7928
|
+
FROM sqlite_temp_master
|
7929
|
+
WHERE name='index_users_on_persistent_id' AND type='index'
|
7930
|
+
|
7931
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7932
|
+
FROM sqlite_master
|
7933
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7934
|
+
UNION ALL
|
7935
|
+
SELECT sql
|
7936
|
+
FROM sqlite_temp_master
|
7937
|
+
WHERE name='index_users_on_unique_id' AND type='index'
|
7938
|
+
[0m
|
7939
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7940
|
+
FROM sqlite_master
|
7941
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7942
|
+
UNION ALL
|
7943
|
+
SELECT sql
|
7944
|
+
FROM sqlite_temp_master
|
7945
|
+
WHERE name='index_users_on_uid' AND type='index'
|
7946
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-aai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Rohrer
|
@@ -249,8 +249,7 @@ files:
|
|
249
249
|
- spec/example_rails4_app/config/routes.rb
|
250
250
|
- spec/example_rails4_app/config/secrets.yml
|
251
251
|
- spec/example_rails4_app/db/development.sqlite3
|
252
|
-
- spec/example_rails4_app/db/migrate/
|
253
|
-
- spec/example_rails4_app/db/migrate/20150609094544_create_aai_user.rb
|
252
|
+
- spec/example_rails4_app/db/migrate/20150609123414_create_aai_user.rb
|
254
253
|
- spec/example_rails4_app/db/schema.rb
|
255
254
|
- spec/example_rails4_app/db/seeds.rb
|
256
255
|
- spec/example_rails4_app/lib/assets/.keep
|
@@ -492,8 +491,7 @@ test_files:
|
|
492
491
|
- spec/example_rails4_app/config/secrets.yml
|
493
492
|
- spec/example_rails4_app/config.ru
|
494
493
|
- spec/example_rails4_app/db/development.sqlite3
|
495
|
-
- spec/example_rails4_app/db/migrate/
|
496
|
-
- spec/example_rails4_app/db/migrate/20150609094544_create_aai_user.rb
|
494
|
+
- spec/example_rails4_app/db/migrate/20150609123414_create_aai_user.rb
|
497
495
|
- spec/example_rails4_app/db/schema.rb
|
498
496
|
- spec/example_rails4_app/db/seeds.rb
|
499
497
|
- spec/example_rails4_app/Gemfile
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class AaiCreateUser < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table(:users) do |t|
|
5
|
-
t.string :uid
|
6
|
-
t.string :unique_id
|
7
|
-
t.string :persistent_id
|
8
|
-
t.string :email
|
9
|
-
t.string :first_name
|
10
|
-
t.string :last_name
|
11
|
-
t.string :home_organization
|
12
|
-
t.text :raw_data
|
13
|
-
t.timestamps
|
14
|
-
end
|
15
|
-
|
16
|
-
add_index :users, :uid, unique: true
|
17
|
-
add_index :users, :unique_id, unique: true
|
18
|
-
add_index :users, :persistent_id, unique: true
|
19
|
-
end
|
20
|
-
end
|