webauthn 2.5.1 → 2.5.2

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: c1e5f50210b030860b4f7c5356420c2f462e6d4eae1f1adb254d1c69e90eead5
4
- data.tar.gz: aab42b79101469b6783b522bdcefd6cd70c20ca055b10ffa85a2847cb400afab
3
+ metadata.gz: f07d44a7778995c6bd2531b26f61e8974ba6ccc8dcf5ff1f21886f353423d598
4
+ data.tar.gz: ecb287679447b3074065f2b06cb0f38b20c9a94114ed2b592d93e99874dfda1a
5
5
  SHA512:
6
- metadata.gz: eb440aeec87f78c45890e13cb1587eb736b457b791b23644ede24952cd3590ee5ff69a55975a5813cbd34699a21c593463907f592c668356efb1c020f73cecda
7
- data.tar.gz: a9b6015c20a893ad8916e0251ff79a3d1871544acb027e1faf7a8553a3c8b70111c7a1beae9a590950e484248a70c490d0d0017f4d9c92fc14935e58cc083642
6
+ metadata.gz: 98811fdbdb15cd80defb95a75de555a3775864bb1c1f1ac94af4a605af2fa3acf7908d91a120b5c3e214af890469d5f2194e5e037a9f8a40b03935159be6a1f1
7
+ data.tar.gz: 8d90a9d37fb83a0ecf5e0c29e8f5154a0ee2170da994238b55fcc4042cb84f6b7fb4e09386e704a2d83f363ef0864fb1fa60c913eea3ae2754e5189435302570
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@
6
6
 
7
7
  - Ability to define multiple relying parties with the introduction of the `WebAuthn::RelyingParty` class ([@padulafacundo], [@brauliomartinezlm])
8
8
 
9
+ ## [v2.5.1] - 2022-07-13
10
+
11
+ ### Added
12
+
13
+ - Updated dependencies to make the gem compatible with openssl-3 [@ClearlyClaire]
14
+
9
15
  ## [v2.5.1] - 2022-03-20
10
16
 
11
17
  ### Added
@@ -335,6 +341,7 @@ Note: Both additions should help making it compatible with Chrome for Android 70
335
341
  - Works with ruby 2.5
336
342
 
337
343
  [v3.0.0.alpha1]: https://github.com/cedarcode/webauthn-ruby/compare/2-stable...v3.0.0.alpha1/
344
+ [v2.5.2]: https://github.com/cedarcode/webauthn-ruby/compare/v2.5.0...v2.5.2/
338
345
  [v2.5.1]: https://github.com/cedarcode/webauthn-ruby/compare/v2.5.0...v2.5.1/
339
346
  [v2.5.0]: https://github.com/cedarcode/webauthn-ruby/compare/v2.4.1...v2.5.0/
340
347
  [v2.4.1]: https://github.com/cedarcode/webauthn-ruby/compare/v2.4.0...v2.4.1/
@@ -380,3 +387,4 @@ Note: Both additions should help making it compatible with Chrome for Android 70
380
387
  [@kingjan1999]: https://github.com/@kingjan1999
381
388
  [@jdongelmans]: https://github.com/jdongelmans
382
389
  [@petergoldstein]: https://github.com/petergoldstein
390
+ [@ClearlyClaire]: https://github.com/ClearlyClaire
@@ -42,7 +42,7 @@ module WebAuthn
42
42
  OpenSSL::Digest.digest(cose_algorithm.hash_function, certified_extra_data),
43
43
  signature_algorithm: tpm_algorithm[:signature],
44
44
  hash_algorithm: tpm_algorithm[:hash],
45
- root_certificates: root_certificates(aaguid: aaguid)
45
+ trusted_certificates: root_certificates(aaguid: aaguid)
46
46
  )
47
47
 
48
48
  key_attestation.valid? && key_attestation.key && key_attestation.key.to_pem == key.to_pem
@@ -54,7 +54,7 @@ module WebAuthn
54
54
  end
55
55
 
56
56
  def default_root_certificates
57
- ::TPM::KeyAttestation::ROOT_CERTIFICATES
57
+ ::TPM::KeyAttestation::TRUSTED_CERTIFICATES
58
58
  end
59
59
 
60
60
  def tpm_algorithm
@@ -15,7 +15,7 @@ module WebAuthn
15
15
  rp_id_hash:,
16
16
  credential: {
17
17
  id: SecureRandom.random_bytes(16),
18
- public_key: OpenSSL::PKey::EC.new("prime256v1").generate_key.public_key
18
+ public_key: OpenSSL::PKey::EC.generate("prime256v1").public_key
19
19
  },
20
20
  sign_count: 0,
21
21
  user_present: true,
@@ -95,7 +95,7 @@ module WebAuthn
95
95
  attr_reader :credentials
96
96
 
97
97
  def new_credential
98
- [SecureRandom.random_bytes(16), OpenSSL::PKey::EC.new("prime256v1").generate_key, 0]
98
+ [SecureRandom.random_bytes(16), OpenSSL::PKey::EC.generate("prime256v1"), 0]
99
99
  end
100
100
 
101
101
  def hashed(target)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebAuthn
4
- VERSION = "2.5.1"
4
+ VERSION = "2.5.2"
5
5
  end
data/webauthn.gemspec CHANGED
@@ -38,9 +38,9 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency "bindata", "~> 2.4"
39
39
  spec.add_dependency "cbor", "~> 0.5.9"
40
40
  spec.add_dependency "cose", "~> 1.1"
41
- spec.add_dependency "openssl", "~> 2.2"
41
+ spec.add_dependency "openssl", ">= 2.2", "< 3.1"
42
42
  spec.add_dependency "safety_net_attestation", "~> 0.4.0"
43
- spec.add_dependency "tpm-key_attestation", "~> 0.10.0"
43
+ spec.add_dependency "tpm-key_attestation", "~> 0.11.0"
44
44
 
45
45
  spec.add_development_dependency "bundler", ">= 1.17", "< 3.0"
46
46
  spec.add_development_dependency "byebug", "~> 11.0"
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webauthn
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodriguez
8
8
  - Braulio Martinez
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-03-20 00:00:00.000000000 Z
12
+ date: 2022-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: android_key_attestation
@@ -85,16 +85,22 @@ dependencies:
85
85
  name: openssl
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '2.2'
91
+ - - "<"
92
+ - !ruby/object:Gem::Version
93
+ version: '3.1'
91
94
  type: :runtime
92
95
  prerelease: false
93
96
  version_requirements: !ruby/object:Gem::Requirement
94
97
  requirements:
95
- - - "~>"
98
+ - - ">="
96
99
  - !ruby/object:Gem::Version
97
100
  version: '2.2'
101
+ - - "<"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.1'
98
104
  - !ruby/object:Gem::Dependency
99
105
  name: safety_net_attestation
100
106
  requirement: !ruby/object:Gem::Requirement
@@ -115,14 +121,14 @@ dependencies:
115
121
  requirements:
116
122
  - - "~>"
117
123
  - !ruby/object:Gem::Version
118
- version: 0.10.0
124
+ version: 0.11.0
119
125
  type: :runtime
120
126
  prerelease: false
121
127
  version_requirements: !ruby/object:Gem::Requirement
122
128
  requirements:
123
129
  - - "~>"
124
130
  - !ruby/object:Gem::Version
125
- version: 0.10.0
131
+ version: 0.11.0
126
132
  - !ruby/object:Gem::Dependency
127
133
  name: bundler
128
134
  requirement: !ruby/object:Gem::Requirement
@@ -306,7 +312,7 @@ metadata:
306
312
  bug_tracker_uri: https://github.com/cedarcode/webauthn-ruby/issues
307
313
  changelog_uri: https://github.com/cedarcode/webauthn-ruby/blob/master/CHANGELOG.md
308
314
  source_code_uri: https://github.com/cedarcode/webauthn-ruby
309
- post_install_message:
315
+ post_install_message:
310
316
  rdoc_options: []
311
317
  require_paths:
312
318
  - lib
@@ -321,8 +327,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
327
  - !ruby/object:Gem::Version
322
328
  version: '0'
323
329
  requirements: []
324
- rubygems_version: 3.0.3.1
325
- signing_key:
330
+ rubygems_version: 3.2.32
331
+ signing_key:
326
332
  specification_version: 4
327
333
  summary: WebAuthn ruby server library
328
334
  test_files: []