Popularity
6.0
Growing
Activity
4.6
Growing
32
2
26

Monthly Downloads: 4,873
Programming language: Elixir
License: MIT License
Tags: Authentication    
Latest version: v0.4.0

ueberauth_auth0 alternatives and similar packages

Based on the "Authentication" category

Do you think we are missing an alternative of ueberauth_auth0 or a related project?

Add another 'Authentication' Package

README

Überauth Auth0

Auth0 OAuth2 strategy for Überauth.

Auth0 logo

Build Status Coverage Status Hex Version License

Installation

  1. Set up your Auth0 application at Auth0 dashboard

  2. Add ueberauth_auth0 to your list of dependencies in mix.exs:

  def deps do
    [{:ueberauth_auth0, "~> 0.3"}]
  end
  1. Ensure ueberauth_auth0 is started before your application:
  def application do
    [applications: [:ueberauth_auth0]]
  end
  1. Add Auth0 to your Überauth configuration:
  config :ueberauth, Ueberauth,
    providers: [
      auth0: {Ueberauth.Strategy.Auth0, []}
    ],
    # If you wish to customize the OAuth serializer,
    # add the line below. Defaults to Jason.
    json_library: Poison
  1. Update your provider configuration:
  config :ueberauth, Ueberauth.Strategy.Auth0.OAuth,
    domain: System.get_env("AUTH0_DOMAIN"),
    client_id: System.get_env("AUTH0_CLIENT_ID"),
    client_secret: System.get_env("AUTH0_CLIENT_SECRET")
  1. Include the Überauth plug in your controller:
  defmodule MyApp.AuthController do
    use MyApp.Web, :controller
    plug Ueberauth
    ...
  end
  1. Create the request and callback routes if you haven't already:
  scope "/auth", MyApp do
    pipe_through :browser

    get "/:provider", AuthController, :request
    get "/:provider/callback", AuthController, :callback
  end
  1. You controller needs to implement callbacks to deal with Ueberauth.Auth and Ueberauth.Failure responses.

For an example implementation see the Überauth Example application.

Changelog

ueberauth_auth0 follows semantic versioning. See CHANGELOG.md for more information.

License

MIT. Please see LICENSE for licensing details.


*Note that all licence references and agreements mentioned in the ueberauth_auth0 README section above are relevant to that project's source code only.