# OmniAuth

> Standardized multi-provider authentication for web applications

Source: https://talira.ai/catalog/omniauth-31vsk2q1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / auth / social login](https://talira.ai/categories/security/auth/social-login), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Platforms: linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes

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](https://talira.ai/catalog/facebook-anxcp1ab.md) 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.

## Links

- GitHub: https://github.com/omniauth/omniauth
- Docs: https://github.com/omniauth/omniauth/wiki

## 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 plugins: plan not known

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 1.00, adoption 0.78, momentum 0.49, community 0.95, backing 0.00, extensibility 0.20.

- last commit 9 days ago
- 133 commits in the last 90 days
- latest release v2.4.1 9 days ago
- 8.1k GitHub stars
- 232 contributors
- accepts sponsorship (Github)
- has a plugin system

## Alternatives

- [Auth0](https://talira.ai/catalog/auth0-zph5jvgk.md): Hosted authentication and authorization for apps (an Okta product)
- [WorkOS](https://talira.ai/catalog/workos-a20rkk5p.md): APIs to make your app enterprise-ready: SSO, directory sync, audit logs and AuthKit
- [Clerk](https://talira.ai/catalog/clerk-pz0cjz27.md): Drop-in authentication and user management with prebuilt UI components
