has_secure_passkey 0.2.5 → 0.2.7

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: 7ccdf8261cd320cfb939e4d91622c9e78b5fb945302730aaf6c1ecdad9743f3a
4
- data.tar.gz: 90d3a5c8ff281779a23d8e90089de5c3aeb7deefb98cb76adce0c70629101e46
3
+ metadata.gz: d60ec46a0f356a08daa382861505f23961c77d8e5f1de1b80e0d6d6e830b7939
4
+ data.tar.gz: ee2bba7266aca050dd3cf56ac3b349c712c1e3718c9f465306e860ca81c1cef8
5
5
  SHA512:
6
- metadata.gz: 9a778a01b57d312da2433bd3e115ad2adaecaed5dfc49cb987eb8412312c436cab2bfcef4ab75bdb7920670c41d9027ca70e325d38a5794a390e4f96e91951c1
7
- data.tar.gz: d577280dc42bed522794e3301e5b68da79d598f6d03d27bd9ca8b81139f5e0905a16d4df38b80478624ff7499e4bdab4bb70fccb031e00e2dea14f11f7910322
6
+ metadata.gz: e9d6e8c611b7db01e03876aed6ed627d7793621f4503c52a312b291e7658e6016c365c294091b41b3c3b583cfa42339a064d9e7d8d27a7bfb7774039c03e14b6
7
+ data.tar.gz: 6ec3fbd29b8d09d2803aec6505d286c661d030952011dcc7c06dd826a0b126617b6fabe0de4692f0d30592d74dc3798430fca34de1b19546d8eac2290de32001
@@ -7,7 +7,7 @@ module HasSecurePasskey
7
7
 
8
8
  initializer "has_secure_passkey.webauthn" do |app|
9
9
  WebAuthn.configure do |config|
10
- config.origin = ENV.fetch("APP_URL", app.config.x.url)
10
+ config.allowed_origins = [ ENV.fetch("APP_URL", app.config.x.url) ]
11
11
  config.rp_name = app.name
12
12
  config.credential_options_timeout = 120_000
13
13
  end
@@ -19,8 +19,7 @@ class HasSecurePasskey::OptionsForCreate
19
19
 
20
20
  def message
21
21
  self.class.verifier.generate(
22
- { challenge:, options:,
23
- authenticatable: authenticatable.as_json(only: serializable_attributes) }.as_json
22
+ { challenge:, options:, authenticatable: authenticatable.as_json }.as_json
24
23
  )
25
24
  end
26
25
 
@@ -46,8 +45,4 @@ class HasSecurePasskey::OptionsForCreate
46
45
  exclude: authenticatable.passkeys.pluck(:external_id)
47
46
  )
48
47
  end
49
-
50
- def serializable_attributes
51
- authenticatable.class.column_names - ["id", "created_at", "updated_at"]
52
- end
53
48
  end
@@ -1,3 +1,3 @@
1
1
  module HasSecurePasskey
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.7"
3
3
  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.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-25 00:00:00.000000000 Z
10
+ date: 2025-02-23 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails