arkaan 2.7.3 → 2.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/oauth/application.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8f25bc056ed41bf018b590375a9feb4dbd06a8847acb85a186cfd5f8a2e3efc
|
4
|
+
data.tar.gz: '068890dbe12597fdd1cd7fae6be931492481ef3c851ade44c6f4f019691a1f61'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 291e88989f2e0fb4a07a1a6d9236038806af36d43c54deed06c1564a6d24636d66781fd06e3a94c2366a990d78aa80d56ab4d89ad20dc4579265f1d17ae05a7d
|
7
|
+
data.tar.gz: d584b02cfbdfab1f188a5c74d88da5d053a830218a9fa7dbc941c0610ccacef0a16081d99ebadcbbe48a0442030414226bd0e30de8e6de39a507a4d8567ec145
|
@@ -11,7 +11,7 @@ module Arkaan
|
|
11
11
|
field :name, type: String
|
12
12
|
# @!attribute [rw] key
|
13
13
|
# @return [String] the unique key for the application, identifying it when requesting a token for the API.
|
14
|
-
field :
|
14
|
+
field :application_key, type: String, default: ->{ SecureRandom.hex }
|
15
15
|
# @!attribute [rw] premium
|
16
16
|
# @return [Boolean] a value indicating whether the application should automatically receive a token when an account is created, or not.
|
17
17
|
field :premium, type: Boolean, default: false
|
@@ -31,7 +31,7 @@ module Arkaan
|
|
31
31
|
length: {minimum: 6, message: 'minlength'},
|
32
32
|
uniqueness: {message: 'uniq'}
|
33
33
|
|
34
|
-
validates :
|
34
|
+
validates :application_key,
|
35
35
|
presence: {message: 'required'},
|
36
36
|
uniqueness: {message: 'uniq'}
|
37
37
|
|