talira

OmniAuth

Standardized multi-provider authentication for web applications

open sourceMITself-hostablefree

OmniAuth standardizes signing in with outside providers in Ruby web apps. Each provider is a strategy, a Rack middleware usually released as its own gem (strategies exist for everything from Facebook to LDAP, listed on the project wiki), and every strategy hands the app the same auth hash with the user's uid and info. It works in Rails, Sinatra or any Rack app, protects the request phase (POST /auth/:provider) against CSRF by default, and includes a Developer strategy as a placeholder during development.

Problems it solves

  • add Sign in with Google and Sign in with GitHub to my Ruby app
  • let enterprise customers sign in through their own OpenID Connect provider
  • one consistent way to handle many different login providers
  • add SAML single sign-on to a Rails app
  • social login in a Sinatra app
  • handle the OAuth callback and get the user's email from any provider
  • add a new login provider without rewriting the sign-in code

Features

  • strategies as Rack middleware
  • standard auth hash
  • community strategies for many providers
  • CSRF protection for the request phase
  • Developer strategy
  • Rails, Sinatra and any Rack app

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what OmniAuth does.

  1. Auth0 Hosted authentication and authorization for apps (an Okta product)
  2. WorkOS APIs to make your app enterprise-ready: SSO, directory sync, audit logs and AuthKit
  3. Clerk Drop-in authentication and user management with prebuilt UI components

Compare OmniAuth with the top 3