doorkeeper 5.1.1 → 5.1.2
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/NEWS.md +4 -0
- data/lib/doorkeeper/orm/active_record/application.rb +11 -11
- data/lib/doorkeeper/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95c8686453ad6829c1ea72b91427ff928c327bcb070a874aa7bcb1a7069862ce
|
4
|
+
data.tar.gz: ea167ef64660032fa82132c2d422ef9e6d3ab1941648a93b2334b5071ba4c105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24b52822b413bef6896c516237dfbd31bb9c4205496aae188a7a70bb574e9babb8ea0a6acbb73df014c03f27682dd97f3ecd3e509bbf29c91bdc2a56a2151d63
|
7
|
+
data.tar.gz: 38c01cb3999dc3384b89507aac2f25f76a311aea6e2fda59a86f35d2a323776e3e58873a74beeab888dd20bd89520b167e8414f71aa206112217fda6c890e0ba
|
data/NEWS.md
CHANGED
@@ -5,6 +5,10 @@ upgrade guides.
|
|
5
5
|
|
6
6
|
User-visible changes worth mentioning.
|
7
7
|
|
8
|
+
## 5.2.2
|
9
|
+
|
10
|
+
- [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
|
11
|
+
|
8
12
|
## 5.1.1
|
9
13
|
|
10
14
|
[#1371] Backport: add #as_json method and attributes serialization restriction for Application model.
|
@@ -83,6 +83,17 @@ module Doorkeeper
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
+
# We need to hook into this method to allow serializing plan-text secrets
|
87
|
+
# when secrets hashing enabled.
|
88
|
+
#
|
89
|
+
# @param key [String] attribute name
|
90
|
+
#
|
91
|
+
def read_attribute_for_serialization(key)
|
92
|
+
return super unless key.to_s == "secret"
|
93
|
+
|
94
|
+
plaintext_secret || secret
|
95
|
+
end
|
96
|
+
|
86
97
|
private
|
87
98
|
|
88
99
|
def generate_uid
|
@@ -130,17 +141,6 @@ module Doorkeeper
|
|
130
141
|
only.uniq
|
131
142
|
end
|
132
143
|
|
133
|
-
# We need to hook into this method to allow serializing plan-text secrets
|
134
|
-
# when secrets hashing enabled.
|
135
|
-
#
|
136
|
-
# @param key [String] attribute name
|
137
|
-
#
|
138
|
-
def read_attribute_for_serialization(key)
|
139
|
-
return super unless key.to_s == "secret"
|
140
|
-
|
141
|
-
plaintext_secret || secret
|
142
|
-
end
|
143
|
-
|
144
144
|
# Collection of attributes that could be serialized for public.
|
145
145
|
# Override this method if you need additional attributes to be serialized.
|
146
146
|
#
|
data/lib/doorkeeper/version.rb
CHANGED
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: 5.1.
|
4
|
+
version: 5.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felipe Elias Philipp
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2020-
|
14
|
+
date: 2020-10-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -475,7 +475,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
475
475
|
- !ruby/object:Gem::Version
|
476
476
|
version: '0'
|
477
477
|
requirements: []
|
478
|
-
|
478
|
+
rubyforge_project:
|
479
|
+
rubygems_version: 2.7.9
|
479
480
|
signing_key:
|
480
481
|
specification_version: 4
|
481
482
|
summary: OAuth 2 provider for Rails and Grape
|