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 +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +0 -3
- data/lib/webauthn/relying_party.rb +14 -3
- data/lib/webauthn/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: 7c4eaef5219f441b2725eecd8a9684b8da36ff9427ac53c7e3feb757fb885a1d
|
|
4
|
+
data.tar.gz: 270c8420d39784d301f6978ab0cdbc027afbd2547734781675bea1e170e2ef37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
|
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
|
|
130
|
-
"Please use `WebAuthn.allowed_origins
|
|
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
|
|
data/lib/webauthn/version.rb
CHANGED
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.
|
|
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-
|
|
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
|