talira

OAuth2 (Elixir)

An Elixir OAuth 2.0 client library

open sourceMITfree

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.

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

Alternatives

The same job

These do what OAuth2 (Elixir) does.

  1. Guardian A token based authentication library for Elixir applications
  2. Joken JSON Web Token (JWT) library for Elixir
  3. JOSE (Erlang and Elixir) JSON Object Signing and Encryption for Erlang and Elixir

Compare OAuth2 (Elixir) with the top 3