Map background
  • Home
  • Passkeys Rails Gem

Introducing passkeys-rails

A New Gem from Allied Code

Hello, folks! It’s Troy here. I’m excited to announce a new open-source project from Allied Code. We’ve been working on a Ruby gem called passkeys-rails, and I’m thrilled to finally share it with you all.

Passkeys-rails is a gem designed to simplify the process of managing passkeys in your Ruby on Rails applications. It’s a tool that we’ve found incredibly useful in our own projects, and we’re hoping that it can bring the same value to your work as well.

The gem provides a simple and secure way to manage passkeys, which are unique identifiers that can be used to authenticate users, manage sessions, and more. With passkeys-rails, you can generate passkeys, validate them, and even set expiration dates. It’s a versatile tool that can be adapted to a wide range of use cases.

We’ve put together a comprehensive README file on the passkeys-rails GitHub page that covers everything you need to know to get started. From installation instructions to usage examples, it’s all there.

But that’s not all!

We’ve also created a demo application to show you how passkeys-rails can be used in a mobile application. The PasskeysRailsDemo is a fully functional iOS application that uses the passkeys-rails gem to demonstrate its usage in an API and integration into an iOS app.

The README file for this demo app provides a step-by-step guide on how to implement the gem in your own projects.

Use Cases and Benefits of Passkeys

Passkeys, as implemented by passkeys-rails, can be a game-changer for many applications. Here are a few use cases where passkeys can shine:

  1. Streamlined Sign-In: Passkeys allow for one-step account creation and sign-in using platform biometrics like Face ID and Touch ID. There’s no need to create or manage passwords, and on iOS, passkeys are synced with iCloud Keychain, making them available across Apple devices.

  2. Cross-Platform Access: You can even use your device to sign in to apps and websites on other devices, providing a seamless user experience.

What about the benefits of using passkeys over traditional passwords?

  1. Increased Security: Passkeys are based on FIDO Alliance and W3C standards, replacing passwords with cryptographic key pairs. This profoundly improves security. Every passkey is strong, non-guessable, and unique.

  2. Safe from Server Leaks: Servers only keep public keys, making them less valuable targets for hackers.

  3. Safe from Phishing: Passkeys are intrinsically linked with the app or website they were created for, so users can never be tricked into using their passkey to sign in to a fraudulent app or website.

By using passkeys-rails to integrate Passkeys into your application, you can leverage these benefits and use cases to provide a more secure and user-friendly experience. Give it a try and see the difference it can make!

Get Involved

We’re incredibly proud of what we’ve built with passkeys-rails, but we also know that there’s always room for improvement. That’s why we’re inviting you, the community, to contribute to this open-source project. Whether you’re a seasoned Ruby developer or a newbie looking to get your feet wet, your input can help make passkeys-rails even better.

If you’re interested in using passkeys-rails in your own projects, or if you’d like to contribute to the open-source project, don’t hesitate to reach out. I’m always happy to chat about software development, especially when it comes to Ruby on Rails. You can contact me directly through this website, or drop me a line on GitHub.

Thanks for taking the time to read about our new project. We can’t wait to see what you’ll build with passkeys-rails!

Best, Troy