webauthn 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50b5c2c43f3e5719dd1ed0f63e9a7bb9705f2f1e97861ab0a0ee0a7d61c4ee41
4
- data.tar.gz: d8849b387d30e54f7a45fd66bcb2b164983100b0b3369ca8fbf52840261e7fe4
3
+ metadata.gz: df6bf3fafae0bdb5587fa25d53cd83c0af43d798a98fd25118d1a1645e140a99
4
+ data.tar.gz: 70fe4568f2c04990884f3caf4fc89a531378ee77e6ab158879c311f6107305ff
5
5
  SHA512:
6
- metadata.gz: 4189cd8d89340585a464e6d9368b6ea532c7c59189cbd47022a04d767ec230979076652e333e70878dcead127688d7fe01e57706f63afe325eb1ec5673cf851a
7
- data.tar.gz: 1cba3b28cd9388256f6d47493fb151f7732ad8680da5863476d4b5e237db7389e362f7a2543bc1447cd0e205e44134957cfa2e4ceb43e9fb32a6b5f851ff349a
6
+ metadata.gz: bcac5a28dd08da1194eb05357d29a003a9dd520db2a7e961ec4024795858473e295dc2ee13eacf0196f067fef35267a240454c1419e39b0585a69222fdc76048
7
+ data.tar.gz: bca37ca9238d993e8e4d99448d5a8f11325e67333acab372fd2ba6b4719e9df0a9952dc9bbb4ef1686ca458b419a74d9689fae0124f7ea7dc19757006434aaa4
@@ -0,0 +1,33 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ release:
9
+ name: Publish to Rubygems
10
+
11
+ runs-on: ubuntu-latest
12
+
13
+ environment: release
14
+
15
+ permissions:
16
+ contents: write
17
+ id-token: write
18
+
19
+ steps:
20
+ - uses: actions/checkout@v7
21
+
22
+ - name: Setup Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ bundler-cache: true
26
+ # This release line requires Bundler < 3, and Ruby 4.0 ships with Bundler 4.
27
+ ruby-version: "3.4"
28
+
29
+ - name: Install openssl
30
+ run: gem install openssl --no-document --version 4.0.2
31
+
32
+ - name: Publish to RubyGems
33
+ uses: rubygems/release-gem@v1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## [v3.4.4] - 2026-11-10
6
+
7
+ ### Changed
8
+
9
+ - Update `cbor` dependency from `~> 0.5.9` to `~> 0.6.2.2` and `cose` dependency from `~> 1.1` to `~> 1.4`. [#523](https://github.com/cedarcode/webauthn-ruby/pull/523) [@stanhu]
10
+
11
+ ## [v3.4.3] - 2025-10-23
12
+
13
+ ### Fixed
14
+
15
+ - Fix `RelyingParty#origin` and `WebAuthn.configuration.origin` always returning `nil`. [#484](https://github.com/cedarcode/webauthn-ruby/pull/484)[@santiagorodriguez96]
16
+ - Now they return the allowed origin if allowed origins has only one element.
17
+
3
18
  ## [v3.4.2] - 2025-09-22
4
19
 
5
20
  ### Added
@@ -427,6 +442,7 @@ Note: Both additions should help making it compatible with Chrome for Android 70
427
442
  - `WebAuthn::AuthenticatorAttestationResponse.valid?` can be used to validate fido-u2f attestations returned by the browser
428
443
  - Works with ruby 2.5
429
444
 
445
+ [v3.4.4]: https://github.com/cedarcode/webauthn-ruby/compare/v3.4.3...v3.4.4/
430
446
  [v3.4.2]: https://github.com/cedarcode/webauthn-ruby/compare/v3.4.1...v3.4.2/
431
447
  [v3.4.1]: https://github.com/cedarcode/webauthn-ruby/compare/v3.4.0...v3.4.1/
432
448
  [v3.4.0]: https://github.com/cedarcode/webauthn-ruby/compare/v3.3.0...v3.4.0/
@@ -477,6 +493,7 @@ Note: Both additions should help making it compatible with Chrome for Android 70
477
493
  [@MaximeNdutiye]: https://github.com/MaximeNdutiye
478
494
  [@sorah]: https://github.com/sorah
479
495
  [@ssuttner]: https://github.com/ssuttner
496
+ [@stanhu]: https://github.com/stanhu
480
497
  [@padulafacundo]: https://github.com/padulafacundo
481
498
  [@santiagorodriguez96]: https://github.com/santiagorodriguez96
482
499
  [@lgarron]: https://github.com/lgarron
data/README.md CHANGED
@@ -1,6 +1,3 @@
1
- > [!warning]
2
- > You are viewing the README for the development version of webauthn-ruby. For the current release version see https://github.com/cedarcode/webauthn-ruby/blob/3-stable/README.md.
3
-
4
1
  # webauthn-ruby
5
2
 
6
3
  ![banner](assets/webauthn-ruby.png)
@@ -54,7 +54,7 @@ module WebAuthn
54
54
  :acceptable_attestation_types,
55
55
  :legacy_u2f_appid
56
56
 
57
- attr_reader :attestation_root_certificates_finders, :origin
57
+ attr_reader :attestation_root_certificates_finders
58
58
 
59
59
  # This is the user-data encoder.
60
60
  # Used to decode user input and to encode data provided to the user.
@@ -121,13 +121,24 @@ module WebAuthn
121
121
  end
122
122
  end
123
123
 
124
+ # DEPRECATED: This method will be removed in future.
125
+ def origin
126
+ warn(
127
+ "DEPRECATION WARNING: `WebAuthn.origin` is deprecated and returns `nil` " \
128
+ "when `WebAuthn.allowed_origins` contains more than one origin. " \
129
+ "It will be removed in future. Please use `WebAuthn.allowed_origins` instead."
130
+ )
131
+
132
+ allowed_origins.first if allowed_origins&.size == 1
133
+ end
134
+
124
135
  # DEPRECATED: This method will be removed in future.
125
136
  def origin=(new_origin)
126
137
  return if new_origin.nil?
127
138
 
128
139
  warn(
129
- "DEPRECATION WARNING: `WebAuthn.origin` is deprecated and will be removed in future. "\
130
- "Please use `WebAuthn.allowed_origins` instead "\
140
+ "DEPRECATION WARNING: `WebAuthn.origin=` is deprecated and will be removed in future. "\
141
+ "Please use `WebAuthn.allowed_origins=` instead "\
131
142
  "that also allows configuring multiple origins per Relying Party"
132
143
  )
133
144
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebAuthn
4
- VERSION = "3.4.2"
4
+ VERSION = "3.4.4"
5
5
  end
data/webauthn.gemspec CHANGED
@@ -35,8 +35,8 @@ Gem::Specification.new do |spec|
35
35
 
36
36
  spec.add_dependency "android_key_attestation", "~> 0.3.0"
37
37
  spec.add_dependency "bindata", "~> 2.4"
38
- spec.add_dependency "cbor", "~> 0.5.9"
39
- spec.add_dependency "cose", "~> 1.1"
38
+ spec.add_dependency "cbor", "~> 0.6.2.2"
39
+ spec.add_dependency "cose", "~> 1.4"
40
40
  spec.add_dependency "openssl", ">= 2.2"
41
41
  spec.add_dependency "safety_net_attestation", "~> 0.5.0"
42
42
  spec.add_dependency "tpm-key_attestation", "~> 0.14.0"
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webauthn
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodriguez
8
8
  - Braulio Martinez
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2025-09-23 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: android_key_attestation
@@ -45,28 +44,28 @@ dependencies:
45
44
  requirements:
46
45
  - - "~>"
47
46
  - !ruby/object:Gem::Version
48
- version: 0.5.9
47
+ version: 0.6.2.2
49
48
  type: :runtime
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
52
51
  requirements:
53
52
  - - "~>"
54
53
  - !ruby/object:Gem::Version
55
- version: 0.5.9
54
+ version: 0.6.2.2
56
55
  - !ruby/object:Gem::Dependency
57
56
  name: cose
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
59
  - - "~>"
61
60
  - !ruby/object:Gem::Version
62
- version: '1.1'
61
+ version: '1.4'
63
62
  type: :runtime
64
63
  prerelease: false
65
64
  version_requirements: !ruby/object:Gem::Requirement
66
65
  requirements:
67
66
  - - "~>"
68
67
  - !ruby/object:Gem::Version
69
- version: '1.1'
68
+ version: '1.4'
70
69
  - !ruby/object:Gem::Dependency
71
70
  name: openssl
72
71
  requirement: !ruby/object:Gem::Requirement
@@ -234,6 +233,7 @@ files:
234
233
  - ".github/dependabot.yml"
235
234
  - ".github/workflows/build.yml"
236
235
  - ".github/workflows/git.yml"
236
+ - ".github/workflows/release.yml"
237
237
  - ".gitignore"
238
238
  - ".rspec"
239
239
  - ".rubocop.yml"
@@ -304,7 +304,6 @@ metadata:
304
304
  bug_tracker_uri: https://github.com/cedarcode/webauthn-ruby/issues
305
305
  changelog_uri: https://github.com/cedarcode/webauthn-ruby/blob/master/CHANGELOG.md
306
306
  source_code_uri: https://github.com/cedarcode/webauthn-ruby
307
- post_install_message:
308
307
  rdoc_options: []
309
308
  require_paths:
310
309
  - lib
@@ -319,8 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
318
  - !ruby/object:Gem::Version
320
319
  version: '0'
321
320
  requirements: []
322
- rubygems_version: 3.2.1
323
- signing_key:
321
+ rubygems_version: 3.6.9
324
322
  specification_version: 4
325
323
  summary: WebAuthn ruby server library
326
324
  test_files: []