doorkeeper 4.0.0.rc4 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of doorkeeper might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/NEWS.md +6 -0
- data/app/views/layouts/doorkeeper/admin.html.erb +1 -1
- data/config/locales/en.yml +1 -0
- data/lib/doorkeeper/engine.rb +9 -0
- data/lib/doorkeeper/oauth/authorization_code_request.rb +1 -1
- data/lib/doorkeeper/oauth/password_access_token_request.rb +1 -1
- data/lib/doorkeeper/version.rb +1 -1
- data/lib/generators/doorkeeper/templates/migration.rb +2 -2
- data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +1 -1
- data/spec/lib/oauth/authorization_code_request_spec.rb +1 -1
- data/spec/lib/oauth/password_access_token_request_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68df4a2a59a456f294e58416fb229932a8ea08c3
|
4
|
+
data.tar.gz: 30ff755d1ec25a53119b419ad1d0be3a69bedd7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df0bc1f0075ede4a575d2c007806ae887ef11d746204df8bda6345b73abf504911fd8bde1c22e6cbf55066553a3c7f9f10653d127a79ead3c2b5fa204dc9b0d1
|
7
|
+
data.tar.gz: becadfd542de1ee8c6863f4dcb4a53db12ea737687942f0699519eb5299a7c22ecac9beb8026a9833dd3dd166810cf6bf0213602fa5696def66fefe6cc5dbb38
|
data/.travis.yml
CHANGED
data/NEWS.md
CHANGED
@@ -4,6 +4,12 @@ User-visible changes worth mentioning.
|
|
4
4
|
|
5
5
|
## master
|
6
6
|
|
7
|
+
## 4.0.0
|
8
|
+
|
9
|
+
- [#834] Fix AssetNotPrecompiled error with Sprockets 4
|
10
|
+
- [#843] Revert "Fix validation error messages"
|
11
|
+
- [#847] Specify Null option to timestamps
|
12
|
+
|
7
13
|
## 4.0.0.rc4
|
8
14
|
|
9
15
|
- [#777] Add support for public client in password grant flow
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<%= link_to t('doorkeeper.layouts.admin.nav.applications'), oauth_applications_path %>
|
20
20
|
<% end %>
|
21
21
|
<%= content_tag :li do %>
|
22
|
-
<%= link_to '
|
22
|
+
<%= link_to t('doorkeeper.layouts.admin.nav.home'), root_path %>
|
23
23
|
<% end %>
|
24
24
|
</ul>
|
25
25
|
</div>
|
data/config/locales/en.yml
CHANGED
data/lib/doorkeeper/engine.rb
CHANGED
@@ -14,5 +14,14 @@ module Doorkeeper
|
|
14
14
|
include Doorkeeper::Rails::Helpers
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
18
|
+
if defined?(Sprockets) && Sprockets::VERSION.chr.to_i >= 4
|
19
|
+
initializer 'doorkeeper.assets.precompile' do |app|
|
20
|
+
app.config.assets.precompile += %w(
|
21
|
+
doorkeeper/application.css
|
22
|
+
doorkeeper/admin/application.css
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
17
26
|
end
|
18
27
|
end
|
@@ -7,7 +7,7 @@ module Doorkeeper
|
|
7
7
|
validate :attributes, error: :invalid_request
|
8
8
|
validate :client, error: :invalid_client
|
9
9
|
validate :grant, error: :invalid_grant
|
10
|
-
validate :redirect_uri, error: :
|
10
|
+
validate :redirect_uri, error: :invalid_grant
|
11
11
|
|
12
12
|
attr_accessor :server, :grant, :client, :redirect_uri, :access_token
|
13
13
|
|
@@ -6,7 +6,7 @@ module Doorkeeper
|
|
6
6
|
include OAuth::Helpers
|
7
7
|
|
8
8
|
validate :client, error: :invalid_client
|
9
|
-
validate :resource_owner, error: :
|
9
|
+
validate :resource_owner, error: :invalid_grant
|
10
10
|
validate :scopes, error: :invalid_scope
|
11
11
|
|
12
12
|
attr_accessor :server, :client, :resource_owner, :parameters,
|
data/lib/doorkeeper/version.rb
CHANGED
@@ -6,7 +6,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration
|
|
6
6
|
t.string :secret, null: false
|
7
7
|
t.text :redirect_uri, null: false
|
8
8
|
t.string :scopes, null: false, default: ''
|
9
|
-
t.timestamps
|
9
|
+
t.timestamps null: false
|
10
10
|
end
|
11
11
|
|
12
12
|
add_index :oauth_applications, :uid, unique: true
|
@@ -31,7 +31,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration
|
|
31
31
|
|
32
32
|
create_table :oauth_access_tokens do |t|
|
33
33
|
t.integer :resource_owner_id
|
34
|
-
t.references :application
|
34
|
+
t.references :application
|
35
35
|
|
36
36
|
# If you use a custom token generator you may need to change this column
|
37
37
|
# from string to text, so that it accepts tokens larger than 255
|
@@ -6,7 +6,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration
|
|
6
6
|
t.string :secret, null: false
|
7
7
|
t.text :redirect_uri, null: false
|
8
8
|
t.string :scopes, null: false, default: ''
|
9
|
-
t.timestamps
|
9
|
+
t.timestamps null: false
|
10
10
|
end
|
11
11
|
|
12
12
|
add_index :oauth_applications, :uid, unique: true
|
@@ -59,7 +59,7 @@ module Doorkeeper::OAuth
|
|
59
59
|
it "matches the redirect_uri with grant's one" do
|
60
60
|
subject.redirect_uri = 'http://other.com'
|
61
61
|
subject.validate
|
62
|
-
expect(subject.error).to eq(:
|
62
|
+
expect(subject.error).to eq(:invalid_grant)
|
63
63
|
end
|
64
64
|
|
65
65
|
it "matches the client with grant's one" do
|
@@ -44,7 +44,7 @@ module Doorkeeper::OAuth
|
|
44
44
|
it 'requires the owner' do
|
45
45
|
subject.resource_owner = nil
|
46
46
|
subject.validate
|
47
|
-
expect(subject.error).to eq(:
|
47
|
+
expect(subject.error).to eq(:invalid_grant)
|
48
48
|
end
|
49
49
|
|
50
50
|
it 'optionally accepts the client' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felipe Elias Philipp
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -373,9 +373,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
373
373
|
version: '0'
|
374
374
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
375
375
|
requirements:
|
376
|
-
- - "
|
376
|
+
- - ">="
|
377
377
|
- !ruby/object:Gem::Version
|
378
|
-
version:
|
378
|
+
version: '0'
|
379
379
|
requirements: []
|
380
380
|
rubyforge_project:
|
381
381
|
rubygems_version: 2.6.2
|