# OAuth2 (Elixir)

> An Elixir OAuth 2.0 client library

Source: https://talira.ai/catalog/oauth2-elixir-6p5evwcq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Ueberauth](https://talira.ai/orgs/ueberauth.md)

OAuth2 is an OAuth 2.0 client library for Elixir. It implements the Authorization Code, Password and Client Credentials flows as strategies, and you can write your own; it encodes and decodes requests and responses through serializers you register per content type, and makes its HTTP calls through Tesla with the adapter you choose. Sonny Scroggin wrote it, and it now lives in the Ueberauth GitHub organization. It's MIT licensed and published on Hex as oauth2.

## Links

- GitHub: https://github.com/ueberauth/oauth2
- Docs: https://hexdocs.pm/oauth2/

## Problems it solves

- sign users in with an OAuth provider from my Elixir app
- get an access token from an OAuth 2.0 API in Elixir
- call a third-party API that uses OAuth client credentials from Phoenix

## Features

- Authorization Code, Password and Client Credentials flows
- custom strategies
- serializers per content type
- HTTP through Tesla with a choice of adapter

## Trust

Overall: 0.35 out of 1.
Signals: maintenance 0.27, adoption 0.58, momentum 0.24, community 0.68, backing 0.30, extensibility 0.00.

- latest release v2.1.1 5 months ago
- 772 GitHub stars
- 49 contributors
- backed by Ueberauth

Warnings:

- last commit 5 months ago

## Alternatives

- [Guardian](https://talira.ai/catalog/guardian-4k5fder3.md): A token based authentication library for Elixir applications
- [Joken](https://talira.ai/catalog/joken-9mkbyp66.md): JSON Web Token (JWT) library for Elixir
- [JOSE (Erlang and Elixir)](https://talira.ai/catalog/jose-erlang-and-elixir-5s8409fh.md): JSON Object Signing and Encryption for Erlang and Elixir

## Sources

[^1]: https://github.com/ueberauth/oauth2/blob/master/LICENSE (checked 27 Nov 2026)
