has_secure_passkey 0.2.4 → 0.2.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ccdf8261cd320cfb939e4d91622c9e78b5fb945302730aaf6c1ecdad9743f3a
|
4
|
+
data.tar.gz: 90d3a5c8ff281779a23d8e90089de5c3aeb7deefb98cb76adce0c70629101e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a778a01b57d312da2433bd3e115ad2adaecaed5dfc49cb987eb8412312c436cab2bfcef4ab75bdb7920670c41d9027ca70e325d38a5794a390e4f96e91951c1
|
7
|
+
data.tar.gz: d577280dc42bed522794e3301e5b68da79d598f6d03d27bd9ca8b81139f5e0905a16d4df38b80478624ff7499e4bdab4bb70fccb031e00e2dea14f11f7910322
|
@@ -20,7 +20,7 @@ class HasSecurePasskey::OptionsForCreate
|
|
20
20
|
def message
|
21
21
|
self.class.verifier.generate(
|
22
22
|
{ challenge:, options:,
|
23
|
-
authenticatable: authenticatable.as_json(only:
|
23
|
+
authenticatable: authenticatable.as_json(only: serializable_attributes) }.as_json
|
24
24
|
)
|
25
25
|
end
|
26
26
|
|
@@ -46,4 +46,8 @@ class HasSecurePasskey::OptionsForCreate
|
|
46
46
|
exclude: authenticatable.passkeys.pluck(:external_id)
|
47
47
|
)
|
48
48
|
end
|
49
|
+
|
50
|
+
def serializable_attributes
|
51
|
+
authenticatable.class.column_names - ["id", "created_at", "updated_at"]
|
52
|
+
end
|
49
53
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_secure_passkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pezza
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 2025-01-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.6.
|
108
|
+
rubygems_version: 3.6.2
|
109
109
|
specification_version: 4
|
110
110
|
summary: Add passkey support to Rails
|
111
111
|
test_files: []
|