rails-7-passkey-demo
Devise
Our great sponsors
rails-7-passkey-demo | Devise | |
---|---|---|
2 | 75 | |
4 | 23,069 | |
- | 0.5% | |
10.0 | 4.8 | |
4 months ago | 7 days ago | |
Ruby | Ruby | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rails-7-passkey-demo
-
Authentication using passkeys Rails 7 Demo
I've mentioned this in passing before but I wrote a Rails 7 Passkey Demo. It does not have any tests. I got distracted and never got back to it.
-
Need help with testing authentication "ceremonies"
I've written a Rails 7 app called rails-7-passkey-demo which is mostly based upon webauthn-rails-demo-app but the original is a Rails 6 app and mine is based upon Rails 7.
Devise
-
Devise 🥳
For example, the passkeys issue brings up how Devise is still tied to passwords. With passwordless authentication gaining popularity, Devise should have good support for optional passwords. But I'm still seeing all OmniAuth guides generating a random password.
-
Devise is so confusing...
A lot of useful ressources can be found in the Devise wiki (https://github.com/heartcombo/devise/wiki/_pages).
And when you boot up rails s, you should see the given output. We can use this metaprogramming to dynamically build objects based on outside context. This is what Devise does with its resource controllers: https://github.com/heartcombo/devise/tree/main/app/controllers/devise
I think maybe the piece you're missing is that there are Devise controllers. They're in the gem - you don't need copies in your app.
It's open-source, so you can check out the source: https://github.com/heartcombo/devise you can also look at how other applications used it: https://opensourcerails.org/open-source-ruby-on-rails-apps-using-devise-gem
-
Top 5 Ruby on Rails Gems
Github Link : https://github.com/heartcombo/devise
-
How to customize Devise for Rails 7.0 and Turbo
You already install Devise to your Rails app according to Devise's README.
-
Setup Active Job with Sidekiq in Rails
NOTE: This configuration is for the Devise gem, if you are using any other authentication gem then this configuration might be different.
-
A First Look at Hanami 2 for Ruby
In general, even though the Hanami ecosystem lacks any "plug-and-play" solutions such as Devise, you can use many existing libraries not tightly coupled to Ruby on Rails. For authentication, you can use Warden, OmniAuth or Rodauth. For uploads there is Shrine. The pagination is built into ROM. Integration with exception catchers such as Rollbar is easy.
- Authentication using passkeys Rails 7 Demo
What are some alternatives?
Sorcery - Magical Authentication
Authlogic - A simple ruby authentication solution.
Rodauth - Ruby's Most Advanced Authentication Framework
Clearance - Rails authentication with email & password.
Knock - Seamless JWT authentication for Rails API
Doorkeeper - Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape.
JWT - A ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.
Pundit - Minimal authorization through OO design and pure Ruby classes
OmniAuth - OmniAuth is a flexible authentication system utilizing Rack middleware.
Devise Token Auth - Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
warden - General Rack Authentication Framework
passwordless - 🗝 Authentication for your Rails app without the icky-ness of passwords