-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Webauthn Key Types - Updated text for Passkey Only login that it doesn't work with hardware keys - Fixed attr_accessors for passkey_only and pwned_enabled
- Loading branch information
Showing
11 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
action_auth (1.4.2) | ||
action_auth (1.5.0) | ||
bcrypt (~> 3.1.0) | ||
rails (~> 7.1) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,8 +103,9 @@ ActionAuth.configure do |config| | |
config.default_from_email = "[email protected]" | ||
config.magic_link_enabled = true | ||
config.passkey_only = true # Allows sign in with only a passkey | ||
config.pwned_enabled = true # defined?(Pwned) | ||
config.verify_email_on_sign_in = true | ||
config.webauthn_enabled = true | ||
config.webauthn_enabled = true # defined?(WebAuthn) | ||
config.webauthn_origin = "http://localhost:3000" # or "https://example.com" | ||
config.webauthn_rp_name = Rails.application.class.to_s.deconstantize | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
db/migrate/20240818032321_add_type_to_webauthn_credentials.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddTypeToWebauthnCredentials < ActiveRecord::Migration[7.2] | ||
def change | ||
add_column :webauthn_credentials, :key_type, :integer, default: 0, limit: 2 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module ActionAuth | ||
VERSION = "1.4.2" | ||
VERSION = "1.5.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
ActionAuth.configure do |config| | ||
config.webauthn_enabled = true | ||
config.webauthn_origin = 'http://localhost:3000' | ||
config.webauthn_rp_name = "Example Inc." | ||
config.allow_user_deletion = true | ||
config.default_from_email = "[email protected]" | ||
config.magic_link_enabled = true | ||
config.passkey_only = true # Allows sign in with only a passkey | ||
config.pwned_enabled = true # defined?(Pwned) | ||
config.verify_email_on_sign_in = true | ||
config.webauthn_enabled = true # defined?(WebAuthn) | ||
config.webauthn_origin = "http://localhost:3000" # or "https://example.com" | ||
config.webauthn_rp_name = Rails.application.class.to_s.deconstantize | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters