webauthn 3.4.2 → 3.4.3

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: 7c4eaef5219f441b2725eecd8a9684b8da36ff9427ac53c7e3feb757fb885a1d
4
+ data.tar.gz: 270c8420d39784d301f6978ab0cdbc027afbd2547734781675bea1e170e2ef37
5
5
  SHA512:
6
- metadata.gz: 4189cd8d89340585a464e6d9368b6ea532c7c59189cbd47022a04d767ec230979076652e333e70878dcead127688d7fe01e57706f63afe325eb1ec5673cf851a
7
- data.tar.gz: 1cba3b28cd9388256f6d47493fb151f7732ad8680da5863476d4b5e237db7389e362f7a2543bc1447cd0e205e44134957cfa2e4ceb43e9fb32a6b5f851ff349a
6
+ metadata.gz: 9dbe89a7969b1652dacea548169ebd63a87c96e0045dbb6a92970ca09d363c424fad0a9c4bf212512568befb56e0d32fe2b7a49d38eca01e27a9a5947fa80a45
7
+ data.tar.gz: 7753da597253ad6919471447288a4da3aab9d7de6f02c1b06ad5b5542a65a34892ad99f83f81f063ffb378156c66a17af5372c98ed76f837de15337b6b9594c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## [v3.4.3] - 2025-10-23
6
+
7
+ ### Fixed
8
+
9
+ - Fix `RelyingParty#origin` and `WebAuthn.configuration.origin` always returning `nil`. [#484](https://github.com/cedarcode/webauthn-ruby/pull/484)[@santiagorodriguez96]
10
+ - Now they return the allowed origin if allowed origins has only one element.
11
+
3
12
  ## [v3.4.2] - 2025-09-22
4
13
 
5
14
  ### Added
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.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodriguez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-09-23 00:00:00.000000000 Z
12
+ date: 2025-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: android_key_attestation