Ruby on Rails + Auth0: Authenticating your API with an external authentication service

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Knock

    Discontinued Seamless JWT authentication for Rails API (by nsarno)

  • In 2019 I wrote a post with this same subject and an extra tool: Knock.

  • zeitwerk

    Efficient and thread-safe code loader for Ruby

  • With a few modifications in the gem source code, we could easily integrate Auth0 into our Rails API, but that on Rails 5. Rails 6 brought Zeitwerk code loader together, which makes it harder to perform the alterations suggested in my previous post.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • HTTP

    HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts

  • Everything will be created under the class Auth0, and it'll be using HTTP gem to perform the quests, but feel free to decide over your code organization and tools.

  • JWT

    A ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.

  • Decoding JWTs is simple whit the help of an already implemented solution. In this section, I'll be using the ruby-jwt.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts