omniauth-aai 0.6.3 → 0.6.4

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: d22d4b8df0fc1f34dc64d446f0735c21cca72bfa
4
- data.tar.gz: 9b68f745e51c2ae6b48b07c23823ce09324043fe
3
+ metadata.gz: fdae5549161cd845e70e3823576e1aae2b2c14b8
4
+ data.tar.gz: 771fecbecc7edb1190e24deb917b1672acb4d528
5
5
  SHA512:
6
- metadata.gz: 3af83ad31bc412d7ab19bd1db0340d612152780227919626b4606742684e8c0d296bc1d2342e9694f73f7716270e9e5b4f3bc89b7b8172efa9f925df4cbe76be
7
- data.tar.gz: 362cb866458401dea78518ff08e0b538f040223ece42757cbade3b97053c072eb56fbe31f3a156177abe513d2be3eb6a2dfdef270e65fd684a14dfb99e6e29a2
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/create_aai_user.rb
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 standard SWITCHaai values, or you can configure it via options:
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
- If you want to use the build in User object and the 'current_user' functionality, you can include the has_current_user method to concerned ActionController or the ApplicationController if you want to have the functionality available globally.
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
- copy_file "session_controller.rb", "app/controllers/session_controller.rb"
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'")
@@ -1,7 +1,7 @@
1
1
  Rails.application.config.middleware.use OmniAuth::Builder do
2
2
  if Rails.env.development?
3
3
  provider :developer, {
4
- uid_field: 'persistent-id',
4
+ uid_field: :persistent_id,
5
5
  fields: [:name, :email, :persistent_id, :unique_id]
6
6
  }
7
7
  else
@@ -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
- <% else %>
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
- <% end %>
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
- <% end %>
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
- # def request_params
83
- # case options[:request_type]
84
- # when :env, 'env', :header, 'header'
85
- # request.env
86
- # when :params, 'params'
87
- # request.params
88
- # end
89
- # end
90
-
91
- # def request_param(key)
92
- # case options[:request_type]
93
- # when :env, 'env'
94
- # request.env[key]
95
- # when :header, 'header'
96
- # request.env["HTTP_#{key.upcase.gsub('-', '_')}"]
97
- # when :params, 'params'
98
- # request.params[key]
99
- # end
100
- # end
101
-
102
- # def callback_phase
103
- # if options[:debug]
104
- # # dump attributes
105
- # return [
106
- # 200,
107
- # {
108
- # 'Content-Type' => 'text/plain'
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
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Aai
3
- VERSION = "0.6.3"
3
+ VERSION = "0.6.4"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../../omniauth-aai
3
3
  specs:
4
- omniauth-aai (0.6.2)
4
+ omniauth-aai (0.6.4)
5
5
  omniauth-shibboleth (~> 1.2)
6
6
 
7
7
  GEM
@@ -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
@@ -1,7 +1,7 @@
1
1
  Rails.application.config.middleware.use OmniAuth::Builder do
2
2
  if Rails.env.development?
3
3
  provider :developer, {
4
- uid_field: 'persistent-id',
4
+ uid_field: :persistent_id,
5
5
  fields: [:name, :email, :persistent_id, :unique_id]
6
6
  }
7
7
  else
@@ -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: 20150528142303) do
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
   (0.3ms) 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) 
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
   (0.1ms) rollback transaction
7190
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7191
+ Migrating to CreateAaiUser (20150609094544)
7192
+  (0.1ms) 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
+  (0.3ms) 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) 
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
+  (0.0ms) rollback transaction
7197
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7198
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7199
+ Migrating to AaiCreateUser (20150528142303)
7200
+  (0.1ms) begin transaction
7201
+  (0.3ms) 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
+  (0.1ms)  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
+ 
7217
+  (0.1ms) 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
+  (0.3ms) DROP INDEX "index_users_on_persistent_id"
7226
+  (0.0ms) 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
+  (0.0ms)  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
+ 
7242
+  (1.1ms) DROP INDEX "index_users_on_unique_id"
7243
+  (0.1ms)  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
+ 
7251
+  (0.1ms) DROP INDEX "index_users_on_uid"
7252
+  (0.1ms) DROP TABLE "users"
7253
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20150528142303"]]
7254
+  (1.2ms) commit transaction
7255
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7256
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7257
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7258
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7259
+ Migrating to CreateAaiUser (20150609114200)
7260
+  (0.1ms) 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
+  (0.4ms) 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) 
7263
+  (0.1ms) select sqlite_version(*)
7264
+  (0.3ms) CREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")
7265
+  (0.1ms) 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
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_unique_id" ON "users" ("unique_id")
7274
+  (0.0ms) 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
+  (0.1ms)  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
+ 
7290
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_persistent_id" ON "users" ("persistent_id")
7291
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150609114200"]]
7292
+  (0.9ms) commit transaction
7293
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7294
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7310
+  (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7322
+ Processing by WelcomeController#index as HTML
7323
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1 [["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
+ User Load (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7404
+ Migrating to CreateAaiUser (20150609114401)
7405
+  (0.1ms) 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
+  (0.5ms) 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) 
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
+  (0.1ms) rollback transaction
7410
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7411
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7412
+  (0.1ms)  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
+ 
7420
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7436
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7437
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7438
+  (0.1ms)  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
+ 
7446
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7462
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7463
+ Migrating to CreateAaiUser (20150609114810)
7464
+  (0.1ms) 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
+  (0.5ms) 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) 
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
+  (0.1ms) rollback transaction
7469
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7470
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7486
+  (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7495
+ Migrating to CreateAaiUser (20150609114920)
7496
+  (0.1ms) 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
+  (0.4ms) 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) 
7499
+  (0.0ms) select sqlite_version(*)
7500
+  (0.3ms) CREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")
7501
+  (0.1ms) 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
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_unique_id" ON "users" ("unique_id")
7510
+  (0.0ms) 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
+  (0.0ms)  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
+ 
7526
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_persistent_id" ON "users" ("persistent_id")
7527
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150609114920"]]
7528
+  (1.0ms) commit transaction
7529
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7530
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7546
+  (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+  (0.1ms) begin transaction
7561
+ SQL (0.5ms) INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.8ms) 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
+  (0.1ms) begin transaction
7581
+ SQL (0.4ms) 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
+  (1.1ms) commit transaction
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
+  (0.1ms) begin transaction
7627
+ SQL (0.8ms) 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: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
+  (0.0ms) 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
+  (0.1ms) begin transaction
7655
+ SQL (0.7ms) 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
+  (0.1ms) rollback transaction
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
+  (0.1ms) begin transaction
7683
+ SQL (0.7ms) INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) 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
+  (0.1ms) begin transaction
7711
+ SQL (0.3ms) 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
+  (0.9ms) commit transaction
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
+  (0.1ms) begin transaction
7731
+ SQL (0.3ms) INSERT INTO "users" ("unique_id", "persistent_id", "email", "raw_data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (7.3ms) 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
+  (0.1ms) begin transaction
7795
+ SQL (0.5ms) 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
+  (6.9ms) commit transaction
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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7813
+ Processing by SessionController#create as HTML
7814
+ Parameters: {"name"=>"nam", "email"=>"em", "persistent_id"=>"p", "unique_id"=>"u", "provider"=>"developer"}
7815
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "p"]]
7816
+  (0.1ms) begin transaction
7817
+ SQL (0.4ms) 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
+  (1.0ms) commit transaction
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
+ User Load (0.2ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7829
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7830
+ Migrating to CreateAaiUser (20150609114920)
7831
+  (0.1ms) begin transaction
7832
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7848
+  (0.1ms) 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
+  (0.4ms) DROP INDEX "index_users_on_persistent_id"
7857
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7873
+  (0.8ms) DROP INDEX "index_users_on_unique_id"
7874
+  (0.1ms)  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
+ 
7882
+  (0.1ms) DROP INDEX "index_users_on_uid"
7883
+  (0.1ms) DROP TABLE "users"
7884
+ SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20150609114920"]]
7885
+  (1.3ms) commit transaction
7886
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7887
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7888
+ Migrating to CreateAaiUser (20150609123414)
7889
+  (0.1ms) 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
+  (0.5ms) 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) 
7892
+  (0.0ms) select sqlite_version(*)
7893
+  (0.4ms) CREATE UNIQUE INDEX "index_users_on_uid" ON "users" ("uid")
7894
+  (0.1ms) 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
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_unique_id" ON "users" ("unique_id")
7903
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7919
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_persistent_id" ON "users" ("persistent_id")
7920
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150609123414"]]
7921
+  (1.0ms) commit transaction
7922
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7923
+  (0.1ms) 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
+  (0.1ms)  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
+ 
7939
+  (0.1ms) 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.3
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/20150528142303_aai_create_user.rb
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/20150528142303_aai_create_user.rb
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