devise-doorkeeper 1.1.2.ci.59.1 → 1.1.2.ci.62.1

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
  SHA256:
3
- metadata.gz: cd5ff52f157f14eb96ddcd90acb360d90a1cf3c3cdc9e40c04b6637b4a84e3a7
4
- data.tar.gz: 16f1246cf223a725fd8a470e2735a114f2ead75e324cbbff032de52d05c6c7f6
3
+ metadata.gz: 7cd36c2428014551a73ef3bed5df5120b3fb7e0f179af968de2a21c00fe10327
4
+ data.tar.gz: 40cd0ee1bda8d1ce10279efd6a4507fe4c35a96995ab7e882d183a6aa59c4a3a
5
5
  SHA512:
6
- metadata.gz: e42602652626119e2f29b49bffd5cf0afd42ec00825e877c9d0945d297ecc2a23cac2a6b5b92217470f3a01794e6e208aa527de0253b47d8cbd91d714a6bf48e
7
- data.tar.gz: 86ed9f37198218f31b9ed544efb99439958930c6e842d2d64187fe87bf414efdd7fe4d5959c79e8084d1f25f3ccbde0c66297f4ddb3676b8e40dd7d69f5d4ff2
6
+ metadata.gz: d62e5bdbc8bcff5a68f49868c65a947ddcfba3b7ee158b1aa1402c08b14e2531cc1a1a8b3290edc8d695905d633037a797bcbf555d18c0e1a5928d3a78a85982
7
+ data.tar.gz: 205caf0da10740a538e598dd62b4d18b7bfcccd4ce9d2c876660384654dfa09e2e50f7848f47f05175c38ed18dafecfd183c5e9952fb286ef0c17077d3235572
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'rails', '~> 5.0.0'
22
22
  spec.add_dependency 'devise', '~> 4.7.3'
23
- spec.add_dependency 'doorkeeper', '~> 4.1.0'
23
+ spec.add_dependency 'doorkeeper', '~> 5.5'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.17.3'
26
26
  spec.add_development_dependency 'rspec-rails', '~> 3.5.1'
@@ -1,4 +1,4 @@
1
- class CreateUsers < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :users do |t|
4
4
 
@@ -1,4 +1,4 @@
1
- class CreateDoorkeeperTables < ActiveRecord::Migration
1
+ class CreateDoorkeeperTables < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :oauth_applications do |t|
4
4
  t.string :name, null: false
@@ -1,4 +1,4 @@
1
- class AddDeviseToUsers < ActiveRecord::Migration
1
+ class AddDeviseToUsers < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  change_table(:users) do |t|
4
4
  ## Database authenticatable
@@ -0,0 +1,11 @@
1
+ class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column(
4
+ :oauth_applications,
5
+ :confidential,
6
+ :boolean,
7
+ null: false,
8
+ default: true # maintaining backwards compatibility: require secrets
9
+ )
10
+ end
11
+ end
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -11,7 +10,7 @@
11
10
  #
12
11
  # It's strongly recommended that you check this file into your version control system.
13
12
 
14
- ActiveRecord::Schema.define(version: 20150120162830) do
13
+ ActiveRecord::Schema.define(version: 20210301163315) do
15
14
 
16
15
  create_table "oauth_access_grants", force: :cascade do |t|
17
16
  t.integer "resource_owner_id", null: false
@@ -22,10 +21,9 @@ ActiveRecord::Schema.define(version: 20150120162830) do
22
21
  t.datetime "created_at", null: false
23
22
  t.datetime "revoked_at"
24
23
  t.string "scopes"
24
+ t.index ["token"], name: "index_oauth_access_grants_on_token", unique: true
25
25
  end
26
26
 
27
- add_index "oauth_access_grants", ["token"], name: "index_oauth_access_grants_on_token", unique: true
28
-
29
27
  create_table "oauth_access_tokens", force: :cascade do |t|
30
28
  t.integer "resource_owner_id"
31
29
  t.integer "application_id"
@@ -35,24 +33,23 @@ ActiveRecord::Schema.define(version: 20150120162830) do
35
33
  t.datetime "revoked_at"
36
34
  t.datetime "created_at", null: false
37
35
  t.string "scopes"
36
+ t.index ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true
37
+ t.index ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id"
38
+ t.index ["token"], name: "index_oauth_access_tokens_on_token", unique: true
38
39
  end
39
40
 
40
- add_index "oauth_access_tokens", ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true
41
- add_index "oauth_access_tokens", ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id"
42
- add_index "oauth_access_tokens", ["token"], name: "index_oauth_access_tokens_on_token", unique: true
43
-
44
41
  create_table "oauth_applications", force: :cascade do |t|
45
- t.string "name", null: false
46
- t.string "uid", null: false
47
- t.string "secret", null: false
48
- t.text "redirect_uri", null: false
49
- t.string "scopes", default: "", null: false
42
+ t.string "name", null: false
43
+ t.string "uid", null: false
44
+ t.string "secret", null: false
45
+ t.text "redirect_uri", null: false
46
+ t.string "scopes", default: "", null: false
50
47
  t.datetime "created_at"
51
48
  t.datetime "updated_at"
49
+ t.boolean "confidential", default: true, null: false
50
+ t.index ["uid"], name: "index_oauth_applications_on_uid", unique: true
52
51
  end
53
52
 
54
- add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true
55
-
56
53
  create_table "users", force: :cascade do |t|
57
54
  t.datetime "created_at", null: false
58
55
  t.datetime "updated_at", null: false
@@ -66,15 +63,8 @@ ActiveRecord::Schema.define(version: 20150120162830) do
66
63
  t.datetime "last_sign_in_at"
67
64
  t.string "current_sign_in_ip"
68
65
  t.string "last_sign_in_ip"
69
- end
70
-
71
- add_index "users", ["email"], name: "index_users_on_email", unique: true
72
- add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
73
-
74
- create_table "waitlist_subscribers", force: :cascade do |t|
75
- t.string "email"
76
- t.datetime "created_at"
77
- t.datetime "updated_at"
66
+ t.index ["email"], name: "index_users_on_email", unique: true
67
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
78
68
  end
79
69
 
80
70
  end
@@ -17,7 +17,7 @@ RSpec.describe 'oauth/tokens password grant flow', type: :request do
17
17
  let(:expected_response) do
18
18
  {
19
19
  access_token: @new_token.token,
20
- token_type: 'bearer',
20
+ token_type: 'Bearer',
21
21
  expires_in: 'ignored',
22
22
  created_at: 'ignored'
23
23
  }.to_json
@@ -45,7 +45,7 @@ RSpec.describe 'oauth/tokens password grant flow', type: :request do
45
45
  before do
46
46
  post '/oauth/token', params, headers
47
47
  end
48
- it { expect(response.status).to eq 401 }
48
+ it { expect(response.status).to eq 400 }
49
49
  end
50
50
  context 'with invalid username' do
51
51
  with :user
@@ -63,6 +63,6 @@ RSpec.describe 'oauth/tokens password grant flow', type: :request do
63
63
  before do
64
64
  post '/oauth/token', params, headers
65
65
  end
66
- it { expect(response.status).to eq 401 }
66
+ it { expect(response.status).to eq 400 }
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-doorkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2.ci.59.1
4
+ version: 1.1.2.ci.62.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BetterUp
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 4.1.0
47
+ version: '5.5'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 4.1.0
54
+ version: '5.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -274,6 +274,7 @@ files:
274
274
  - spec/dummy/db/migrate/20150120154622_create_users.rb
275
275
  - spec/dummy/db/migrate/20150120154657_create_doorkeeper_tables.rb
276
276
  - spec/dummy/db/migrate/20150120162830_add_devise_to_users.rb
277
+ - spec/dummy/db/migrate/20210301163315_add_confidential_to_doorkeeper_application.rb
277
278
  - spec/dummy/db/schema.rb
278
279
  - spec/dummy/lib/assets/.keep
279
280
  - spec/dummy/log/.keep
@@ -364,6 +365,7 @@ test_files:
364
365
  - spec/dummy/db/migrate/20150120154622_create_users.rb
365
366
  - spec/dummy/db/migrate/20150120154657_create_doorkeeper_tables.rb
366
367
  - spec/dummy/db/migrate/20150120162830_add_devise_to_users.rb
368
+ - spec/dummy/db/migrate/20210301163315_add_confidential_to_doorkeeper_application.rb
367
369
  - spec/dummy/db/schema.rb
368
370
  - spec/dummy/lib/assets/.keep
369
371
  - spec/dummy/log/.keep