doorkeeper 5.2.5 → 5.2.6
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/CHANGELOG.md +4 -0
- data/lib/doorkeeper/orm/active_record/application.rb +11 -11
- data/lib/doorkeeper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f054b4619e2489e52e1e61a959878fa612ae5c42f7217d48f8b59173fb0c8da
|
4
|
+
data.tar.gz: 160f404b0c1e5eeffe97340c748e2f1f65d4bd6092367320ad573ad042f05ad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8929470e2fd326bed639d35723f458799e9e868e8bdd27b35e4d667d9271edd38e0e3d1d14b0b7e0c7f36a474acfb9d5ee72cf84aa6a77a7f768fb0a898709c
|
7
|
+
data.tar.gz: 6fed1b0c2e7f6ffc141c22bd27974423bd80d3c81c90bbeff83964570b9e9158616cc56fefca1996c8da2018c098246691fc8a5b7f8ef6e6fcc2bd9b03488c38
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ upgrade guides.
|
|
5
5
|
|
6
6
|
User-visible changes worth mentioning.
|
7
7
|
|
8
|
+
## 5.2.6
|
9
|
+
|
10
|
+
- [#1404] Backport: Make `Doorkeeper::Application#read_attribute_for_serialization` public.
|
11
|
+
|
8
12
|
## 5.2.5
|
9
13
|
|
10
14
|
- [#1371] Backport: add `#as_json` method and attributes serialization restriction for Application model.
|
@@ -93,6 +93,17 @@ module Doorkeeper
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
# We need to hook into this method to allow serializing plan-text secrets
|
97
|
+
# when secrets hashing enabled.
|
98
|
+
#
|
99
|
+
# @param key [String] attribute name
|
100
|
+
#
|
101
|
+
def read_attribute_for_serialization(key)
|
102
|
+
return super unless key.to_s == "secret"
|
103
|
+
|
104
|
+
plaintext_secret || secret
|
105
|
+
end
|
106
|
+
|
96
107
|
private
|
97
108
|
|
98
109
|
def generate_uid
|
@@ -138,17 +149,6 @@ module Doorkeeper
|
|
138
149
|
only.uniq
|
139
150
|
end
|
140
151
|
|
141
|
-
# We need to hook into this method to allow serializing plan-text secrets
|
142
|
-
# when secrets hashing enabled.
|
143
|
-
#
|
144
|
-
# @param key [String] attribute name
|
145
|
-
#
|
146
|
-
def read_attribute_for_serialization(key)
|
147
|
-
return super unless key.to_s == "secret"
|
148
|
-
|
149
|
-
plaintext_secret || secret
|
150
|
-
end
|
151
|
-
|
152
152
|
# Collection of attributes that could be serialized for public.
|
153
153
|
# Override this method if you need additional attributes to be serialized.
|
154
154
|
#
|
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.2.
|
4
|
+
version: 5.2.6
|
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-05-
|
14
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|