warden-webauthn 0.2.1 → 0.3.0

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: c0427adf432832eb3cb0782df157e0f76cc7b673f29bbc89f61bca921eadda03
4
- data.tar.gz: 6409bbb807abdc11c147e67ddccdd9fdcbd37c3be200ee76fd3e1776d0b5c464
3
+ metadata.gz: 44ea9ceb0b37837c22232224ca50f7d69668f52585feeb9eadb2af9bb17d69ce
4
+ data.tar.gz: 86bcb44b985e20865e6711a3be9d4a0d0b9eebbf0c9aee4b112d35d963cfcf28
5
5
  SHA512:
6
- metadata.gz: 5205aef3ae71d897d7b013a7e83ea77c09c8e71676eaf89127ff364aaac57fa888a3b18b8c7184a97cb12a087afbdeaf2bfed626ae8ca80c0d324947f5945888
7
- data.tar.gz: 1290ec462ed67970bddc391361c4876cd63251041a982723937d74bc47c6c6c6f57c53b2c9e5d475c0139b70f52f7a3155bc00c4bc1865ce19b6d5ac6aa0849d
6
+ metadata.gz: c8e5ff575119edf0faa2c259685d22adaa4d12660a582b4b4b6a62cea9f302535f63812f39b51245310808b3330a17ea166ea555de58c74d4eb27dc6e7e90289
7
+ data.tar.gz: c4e6aad4b258ea4189275c981ed15e132ad84d69fb843e7a2b43666d76347ccdbd5ec023f4d8c603d9323fc9e235baa6e0156f338a5e752b4ddcabb83d0f37ea
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.3.0]- 2023-07-24
2
+
3
+ - Add `RegistrationHelpers.authenticator_selection_options`
4
+ - https://github.com/ruby-passkeys/warden-webauthn/pull/8
5
+
1
6
  ## [0.2.1]- 2023-06-24
2
7
 
3
8
  - Refactor `relying_party_key` into `Warden::WebAuthn::RackHelpers`
@@ -8,7 +8,7 @@ module Warden
8
8
  relying_party.options_for_registration(**{
9
9
  user: user_details,
10
10
  exclude: exclude,
11
- authenticator_selection: { user_verification: "required" }
11
+ authenticator_selection: authenticator_selection_options
12
12
  }.merge(options))
13
13
  end
14
14
 
@@ -47,6 +47,10 @@ module Warden
47
47
  def registration_challenge_key
48
48
  "current_webauthn_registration_challenge"
49
49
  end
50
+
51
+ def authenticator_selection_options
52
+ { resident_key: "required", user_verification: "required" }
53
+ end
50
54
  end
51
55
  end
52
56
  end
@@ -76,10 +76,6 @@ module Warden
76
76
  "warden.webauthn.credential_finder"
77
77
  end
78
78
 
79
- def relying_party_key
80
- "warden.webauthn.relying_party"
81
- end
82
-
83
79
  def raw_credential_key
84
80
  "credential"
85
81
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Warden
4
4
  module WebAuthn
5
- VERSION = "0.2.1"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-webauthn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Cannon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-24 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: warden