{"id":14989849,"url":"https://github.com/achedeuzot/ueberauth_auth0","last_synced_at":"2025-04-05T08:06:42.939Z","repository":{"id":40281925,"uuid":"61262020","full_name":"achedeuzot/ueberauth_auth0","owner":"achedeuzot","description":"Auth0 OAuth2 strategy for Überauth.","archived":false,"fork":false,"pushed_at":"2023-04-03T23:58:32.000Z","size":241,"stargazers_count":71,"open_issues_count":12,"forks_count":46,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T08:04:30.475Z","etag":null,"topics":["auth0","elixir","hacktoberfest","ueberauth","ueberauth-strategies"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/ueberauth_auth0","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/achedeuzot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-16T04:24:50.000Z","updated_at":"2024-07-13T13:30:58.000Z","dependencies_parsed_at":"2024-06-19T06:29:50.520Z","dependency_job_id":null,"html_url":"https://github.com/achedeuzot/ueberauth_auth0","commit_stats":{"total_commits":104,"total_committers":24,"mean_commits":4.333333333333333,"dds":0.7307692307692308,"last_synced_commit":"de1964785a3d8dc47fba2eb850345f0028b46651"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achedeuzot%2Fueberauth_auth0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achedeuzot%2Fueberauth_auth0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achedeuzot%2Fueberauth_auth0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achedeuzot%2Fueberauth_auth0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/achedeuzot","download_url":"https://codeload.github.com/achedeuzot/ueberauth_auth0/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305934,"owners_count":20917208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth0","elixir","hacktoberfest","ueberauth","ueberauth-strategies"],"created_at":"2024-09-24T14:19:01.363Z","updated_at":"2025-04-05T08:06:42.923Z","avatar_url":"https://github.com/achedeuzot.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Überauth Auth0\n\n[![Build Status](https://github.com/achedeuzot/ueberauth_auth0/workflows/tests/badge.svg)](https://github.com/achedeuzot/ueberauth_auth0/actions?query=workflow%3Atests+branch%3Amaster)\n[![Coverage Status](https://coveralls.io/repos/github/achedeuzot/ueberauth_auth0/badge.svg?branch=master)](https://coveralls.io/github/achedeuzot/ueberauth_auth0?branch=master)\n[![Module Version](https://img.shields.io/hexpm/v/ueberauth_auth0.svg)](https://hex.pm/packages/ueberauth_auth0)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/ueberauth_auth0/)\n[![Total Download](https://img.shields.io/hexpm/dt/ueberauth_auth0.svg)](https://hex.pm/packages/ueberauth_auth0)\n[![License](https://img.shields.io/hexpm/l/ueberauth_auth0.svg)](https://github.com/achedeuzot/ueberauth_auth0/blob/master/LICENSE.md)\n[![Last Updated](https://img.shields.io/github/last-commit/achedeuzot/ueberauth_auth0.svg)](https://github.com/achedeuzot/ueberauth_auth0/commits/master)\n\n\u003e Auth0 OAuth2 strategy for Überauth.\n\n## Installation\n\n1.  Set up your Auth0 application at [Auth0 dashboard](https://manage.auth0.com/#/applications).\n\n2.  Add `:ueberauth_auth0` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [\n        {:ueberauth_auth0, \"~\u003e 2.0\"}\n      ]\n    end\n    ```\n\n3.  Ensure `ueberauth_auth0` is started before your application:\n\n    ```elixir\n    def application do\n      [\n        applications: [:ueberauth_auth0]\n      ]\n    end\n    ```\n\n4.  Add Auth0 to your Überauth configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth,\n      providers: [\n        auth0: {Ueberauth.Strategy.Auth0, []}\n      ],\n      # If you wish to customize the OAuth serializer,\n      # add the line below. Defaults to Jason.\n      json_library: Poison\n    ```\n\n    **or** with per-app config:\n\n    ```elixir\n    config :my_app, Ueberauth,\n      providers: [\n        auth0: {Ueberauth.Strategy.Auth0, [otp_app: :my_app]}\n      ]\n    ```\n\n5.  Update your provider configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth.Strategy.Auth0.OAuth,\n      domain: System.get_env(\"AUTH0_DOMAIN\"),\n      client_id: System.get_env(\"AUTH0_CLIENT_ID\"),\n      client_secret: System.get_env(\"AUTH0_CLIENT_SECRET\")\n    ```\n\n    **or** with per-app config:\n\n    ```elixir\n    config :my_app, Ueberauth.Strategy.Auth0.OAuth,\n      domain: System.get_env(\"AUTH0_DOMAIN\"),\n      client_id: System.get_env(\"AUTH0_CLIENT_ID\"),\n      client_secret: System.get_env(\"AUTH0_CLIENT_SECRET\")\n    ```\n\n    See the `Ueberauth.Strategy.Auth0` module docs for more\n    configuration options.\n\n6.  Include the Überauth plug in your controller:\n\n    ```elixir\n    defmodule MyApp.AuthController do\n      use MyApp.Web, :controller\n      plug Ueberauth\n      ...\n    end\n    ```\n\n    **or** with per-app config:\n\n    ```elixir\n    defmodule MyApp.AuthController do\n      use MyApp.Web, :controller\n      plug Ueberauth, otp_app: :my_app\n      ...\n    end\n    ```\n\n7.  Create the request and callback routes if you haven't already:\n\n    ```elixir\n    scope \"/auth\", MyApp do\n      pipe_through :browser\n\n      get \"/:provider\", AuthController, :request\n      get \"/:provider/callback\", AuthController, :callback\n    end\n    ```\n\n8. You controller needs to implement callbacks to deal with Ueberauth.Auth and Ueberauth.Failure responses.\n\nFor an example implementation see the [Überauth Example](https://github.com/ueberauth/ueberauth_example) application.\n\n## Learn about OAuth2\n[OAuth2 explained with cute shapes](https://engineering.backmarket.com/oauth2-explained-with-cute-shapes-7eae51f20d38)\n\n## Copyright and License\n\nCopyright (c) 2015 Son Tran-Nguyen \\\nCopyright (c) 2020 Klemen Sever\n\nThis library is released under the MIT License. See the [LICENSE.md](./LICENSE.md) file\nfor further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachedeuzot%2Fueberauth_auth0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachedeuzot%2Fueberauth_auth0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachedeuzot%2Fueberauth_auth0/lists"}