devise-webauthn 0.5.1 → 0.6.0
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/.github/workflows/ruby.yml +4 -0
- data/.gitignore +6 -6
- data/.rspec +1 -0
- data/.rspec-api +4 -0
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +34 -0
- data/Gemfile.lock +1 -1
- data/README.md +154 -1
- data/Rakefile +6 -1
- data/app/controllers/devise/passkey_authentication_options_controller.rb +4 -3
- data/app/controllers/devise/passkey_registration_options_controller.rb +6 -11
- data/app/controllers/devise/passkeys_controller.rb +30 -15
- data/app/controllers/devise/second_factor_webauthn_credentials_controller.rb +45 -18
- data/app/controllers/devise/security_key_authentication_options_controller.rb +9 -4
- data/app/controllers/devise/security_key_registration_options_controller.rb +8 -13
- data/app/controllers/devise/two_factor_authentications_controller.rb +7 -3
- data/lib/devise/models/webauthn_credential_authenticatable.rb +9 -0
- data/lib/devise/strategies/database_authenticatable.rb +29 -5
- data/lib/devise/strategies/passkey_authenticatable.rb +15 -11
- data/lib/devise/strategies/webauthn_two_factor_authenticatable.rb +20 -17
- data/lib/devise/webauthn/challenge_store_access.rb +15 -0
- data/lib/devise/webauthn/challenge_stores/cache.rb +63 -0
- data/lib/devise/webauthn/challenge_stores/session.rb +32 -0
- data/lib/devise/webauthn/credential_properties.rb +25 -0
- data/lib/devise/webauthn/engine.rb +6 -1
- data/lib/devise/webauthn/pending_two_factor_sign_in.rb +42 -0
- data/lib/devise/webauthn/public_key_credential_param.rb +26 -0
- data/lib/devise/webauthn/test/authenticator_helpers.rb +9 -6
- data/lib/devise/webauthn/two_factor_token.rb +31 -0
- data/lib/devise/webauthn/version.rb +1 -1
- data/lib/devise/webauthn.rb +9 -0
- data/lib/generators/devise/webauthn/install/templates/webauthn.rb +3 -0
- data/lib/generators/devise/webauthn/templates/controllers/passkey_authentication_options_controller.rb.tt +2 -2
- data/lib/generators/devise/webauthn/templates/controllers/passkey_registration_options_controller.rb.tt +2 -2
- data/lib/generators/devise/webauthn/templates/controllers/security_key_authentication_options_controller.rb.tt +2 -2
- data/lib/generators/devise/webauthn/templates/controllers/security_key_registration_options_controller.rb.tt +2 -2
- data/lib/generators/devise/webauthn/webauthn_credential_model/templates/webauthn_credential_migration.rb.erb +2 -0
- metadata +9 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
class <%= @scope_prefix %>SecurityKeyRegistrationOptionsController < Devise::SecurityKeyRegistrationOptionsController
|
|
4
|
-
#
|
|
5
|
-
# def
|
|
4
|
+
# POST /resource/security_key_registration_options
|
|
5
|
+
# def create
|
|
6
6
|
# super
|
|
7
7
|
# end
|
|
8
8
|
end
|
|
@@ -9,6 +9,8 @@ class CreateWebauthnCredentials < ActiveRecord::Migration[<%= Rails.version.to_f
|
|
|
9
9
|
t.integer :sign_count, limit: 8, null: false
|
|
10
10
|
t.references :<%= user_model_name %>, null: false, foreign_key: true
|
|
11
11
|
t.integer :authentication_factor, limit: 1, null: false
|
|
12
|
+
t.boolean :discoverable, null: false, default: false
|
|
13
|
+
t.boolean :uv_initialized, null: false, default: false
|
|
12
14
|
|
|
13
15
|
t.timestamps
|
|
14
16
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise-webauthn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cedarcode
|
|
@@ -49,6 +49,7 @@ files:
|
|
|
49
49
|
- ".github/workflows/ruby.yml"
|
|
50
50
|
- ".gitignore"
|
|
51
51
|
- ".rspec"
|
|
52
|
+
- ".rspec-api"
|
|
52
53
|
- ".rubocop.yml"
|
|
53
54
|
- ".rubocop_todo.yml"
|
|
54
55
|
- ".ruby-version"
|
|
@@ -90,10 +91,17 @@ files:
|
|
|
90
91
|
- lib/devise/strategies/passkey_authenticatable.rb
|
|
91
92
|
- lib/devise/strategies/webauthn_two_factor_authenticatable.rb
|
|
92
93
|
- lib/devise/webauthn.rb
|
|
94
|
+
- lib/devise/webauthn/challenge_store_access.rb
|
|
95
|
+
- lib/devise/webauthn/challenge_stores/cache.rb
|
|
96
|
+
- lib/devise/webauthn/challenge_stores/session.rb
|
|
97
|
+
- lib/devise/webauthn/credential_properties.rb
|
|
93
98
|
- lib/devise/webauthn/engine.rb
|
|
94
99
|
- lib/devise/webauthn/helpers/credentials_helper.rb
|
|
100
|
+
- lib/devise/webauthn/pending_two_factor_sign_in.rb
|
|
101
|
+
- lib/devise/webauthn/public_key_credential_param.rb
|
|
95
102
|
- lib/devise/webauthn/routes.rb
|
|
96
103
|
- lib/devise/webauthn/test/authenticator_helpers.rb
|
|
104
|
+
- lib/devise/webauthn/two_factor_token.rb
|
|
97
105
|
- lib/devise/webauthn/url_helpers.rb
|
|
98
106
|
- lib/devise/webauthn/version.rb
|
|
99
107
|
- lib/generators/devise/webauthn/controllers_generator.rb
|