diff --git a/Gemfile b/Gemfile index 0c1a20f..9f30a9b 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,7 @@ gem 'kaminari' gem 'bcrypt' gem 'foreman' gem 'hashie' -gem 'authie', :git => "git@codebasehq.com:atechmedia/libs/authie" +gem 'authie', '~> 3.0' gem 'dynamic_form' gem 'changey' gem 'mail' diff --git a/Gemfile.lock b/Gemfile.lock index a0b73cf..a67ccba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,3 @@ -GIT - remote: git@codebasehq.com:atechmedia/libs/authie - revision: 045adc2e54e3ec6ced99ad49356da6397dd62542 - specs: - authie (3.0.0) - GIT remote: https://github.com/adamcooke/moonrope revision: fe5d5de38a35c36416f256a41902a6984e147fe5 @@ -66,6 +60,7 @@ GEM activerecord (>= 3.2, < 6.0) rake (>= 10.4, < 12.0) arel (7.1.4) + authie (3.0.0) autoprefixer-rails (6.5.0.2) execjs basic_ssl (1.0.3) @@ -217,7 +212,7 @@ PLATFORMS DEPENDENCIES acme-client! annotate - authie! + authie (~> 3.0) autoprefixer-rails basic_ssl bcrypt diff --git a/db/migrate/20170421195414_add_token_hashes_to_authie_sessions.authie.rb b/db/migrate/20170421195414_add_token_hashes_to_authie_sessions.authie.rb new file mode 100644 index 0000000..03109c9 --- /dev/null +++ b/db/migrate/20170421195414_add_token_hashes_to_authie_sessions.authie.rb @@ -0,0 +1,5 @@ +# This migration comes from authie (originally 20170417170000) +class AddTokenHashesToAuthieSessions < ActiveRecord::Migration + def change + end +end diff --git a/db/migrate/20170421195415_add_index_to_token_hashes_on_authie_sessions.authie.rb b/db/migrate/20170421195415_add_index_to_token_hashes_on_authie_sessions.authie.rb new file mode 100644 index 0000000..ca4dd5f --- /dev/null +++ b/db/migrate/20170421195415_add_index_to_token_hashes_on_authie_sessions.authie.rb @@ -0,0 +1,6 @@ +# This migration comes from authie (originally 20170421174100) +class AddIndexToTokenHashesOnAuthieSessions < ActiveRecord::Migration + def change + add_index :authie_sessions, :token_hash + end +end diff --git a/db/schema.rb b/db/schema.rb index 7607df7..eaf118d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170418200606) do +ActiveRecord::Schema.define(version: 20170421195415) do create_table "additional_route_endpoints", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| t.integer "route_id" @@ -53,6 +53,7 @@ ActiveRecord::Schema.define(version: 20170418200606) do t.string "token_hash" t.index ["browser_id"], name: "index_authie_sessions_on_browser_id", length: { browser_id: 8 }, using: :btree t.index ["token"], name: "index_authie_sessions_on_token", length: { token: 8 }, using: :btree + t.index ["token_hash"], name: "index_authie_sessions_on_token_hash", using: :btree t.index ["user_id"], name: "index_authie_sessions_on_user_id", using: :btree end