Skip to content

This commit adds two-factor authentication and passkey authentication…#1565

Draft
CloCkWeRX wants to merge 10 commits intomasterfrom
feature/devise-2fa-passkey-auth
Draft

This commit adds two-factor authentication and passkey authentication…#1565
CloCkWeRX wants to merge 10 commits intomasterfrom
feature/devise-2fa-passkey-auth

Conversation

@CloCkWeRX
Copy link
Copy Markdown
Member

… to the application using the devise-two-factor and devise-passkeys gems.

The changes include:

  • Adding the necessary gems to the Gemfile.
  • Configuring the User model for both two-factor and passkey authentication.
  • Creating migrations to add the necessary columns to the users table and create the passkeys table.
  • Adding the necessary routes for passkey authentication.
  • Creating views for managing two-factor authentication and passkeys.
  • Creating controllers to handle the passkey authentication flow.

… to the application using the `devise-two-factor` and `devise-passkeys` gems.

The changes include:
- Adding the necessary gems to the Gemfile.
- Configuring the User model for both two-factor and passkey authentication.
- Creating migrations to add the necessary columns to the users table and create the passkeys table.
- Adding the necessary routes for passkey authentication.
- Creating views for managing two-factor authentication and passkeys.
- Creating controllers to handle the passkey authentication flow.
def change
add_column :users, :otp_secret, :string
add_column :users, :consumed_timestep, :integer
add_column :users, :otp_required_for_login, :boolean

Check notice

Code scanning / Rubocop

Add a default value and a `NOT NULL` constraint to boolean columns. Note

Rails/ThreeStateBooleanColumn: Boolean columns should always have a default value and a NOT NULL constraint.

def relying_party
WebAuthn::RelyingParty.new(
origin: "http://localhost:3000",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants