{"id":13697508,"url":"https://github.com/techgaun/auth0_ex","last_synced_at":"2025-04-07T17:12:02.525Z","repository":{"id":10797277,"uuid":"62036194","full_name":"techgaun/auth0_ex","owner":"techgaun","description":"An elixir client library for Auth0","archived":false,"fork":false,"pushed_at":"2024-03-01T04:34:30.000Z","size":135,"stargazers_count":45,"open_issues_count":2,"forks_count":28,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T14:14:49.862Z","etag":null,"topics":["auth0","elixir","hacktoberfest","jwt-authentication","sdk"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/auth0_ex","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techgaun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"techgaun"}},"created_at":"2016-06-27T07:51:01.000Z","updated_at":"2024-07-20T10:46:00.000Z","dependencies_parsed_at":"2024-03-01T05:25:02.444Z","dependency_job_id":"7dcb33c3-b180-4692-9a66-ec906dd1e187","html_url":"https://github.com/techgaun/auth0_ex","commit_stats":{"total_commits":95,"total_committers":11,"mean_commits":8.636363636363637,"dds":"0.26315789473684215","last_synced_commit":"13f529a681028ae10843b8d98d2993157059e832"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fauth0_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fauth0_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fauth0_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fauth0_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techgaun","download_url":"https://codeload.github.com/techgaun/auth0_ex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694877,"owners_count":20980733,"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","jwt-authentication","sdk"],"created_at":"2024-08-02T18:00:59.535Z","updated_at":"2025-04-07T17:12:02.506Z","avatar_url":"https://github.com/techgaun.png","language":"Elixir","funding_links":["https://github.com/sponsors/techgaun"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Auth0Ex\n\n[![Hex version](https://img.shields.io/hexpm/v/auth0_ex.svg \"Hex version\")](https://hex.pm/packages/auth0_ex) ![Hex downloads](https://img.shields.io/hexpm/dt/auth0_ex.svg \"Hex downloads\") ![Build Status](https://github.com/techgaun/auth0_ex/actions/workflows/main.yml/badge.svg)\n\n\u003e An elixir client library for Auth0\n\n## Installation\n\nYou can install the stable version from hex:\n\n```elixir\ndef deps do\n[{:auth0_ex, \"~\u003e 0.9\"}]\nend\n```\n\nYou can use github repo as your package source to use the latest source code but beware it might have breaking and unstable code:\n\n```elixir\ndef deps do\n  [{:auth0_ex, github: \"techgaun/auth0_ex\"}]\nend\n```\n## Configuration\n\nAdd a configuration block like below:\n\n- First option is to use management api client.\n\nYou can create non-interactive client for management api as described [HERE](https://auth0.com/docs/api/management/v2/tokens).\nOnce you do that, you should be able to grab client ID and client secret from the setting page for use with Auth0Ex.\nThis is a recommended setup as Auth0Ex can recreate new `access_token` when the current one expires.\n\n```elixir\nconfig :auth0_ex,\n  domain: System.get_env(\"AUTH0_DOMAIN\"),\n  mgmt_client_id: System.get_env(\"AUTH0_MGMT_CLIENT_ID\"),\n  mgmt_client_secret: System.get_env(\"AUTH0_MGMT_CLIENT_SECRET\"),\n  http_opts: []\n```\n\n- Second option is to use pre-created token with access to management API.\n\n```elixir\nconfig :auth0_ex,\n  domain: System.get_env(\"AUTH0_DOMAIN\"),\n  mgmt_token: System.get_env(\"AUTH0_MGMT_TOKEN\"),\n  http_opts: []\n```\n\n### Notes\n\n- The v2 `search_engine` API is being deprecated by Auth0. User queries now specify `search_engine=v3` by default. If for some reason you need the `v2` engine you can set `v2_search: true` in your config block.\n- if you use pre-created management token, it will always be used for your requests.\n- `AUTH0_DOMAIN` should be entire tenant domain Auth0 provides. We fall back to adding `auth0.com` right now but that will be removed in future version. This allows us to use `Auth0Ex` in all tenant regions unlike the previous versions.\n- If you don't want `auth0.com` to be added, you can set `config :auth0_ex, custom_domain: true`\n\nExport appropriate environment variable and you should be all set.\n\nPlease refer to the [documentation](https://hexdocs.pm/auth0_ex/) for more details.\n\n### Authentication API\n\nIn addition to the management API resources, there is also a support for most used authentication APIs.\nAuthentication API will use the same `domain` config you specify in the config above. If you wish to use `Auth0Ex`\nfor authentication APIs only, all you need to specify is `domain` in config.\n\n## Author\n\n- [techgaun](https://github.com/techgaun)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fauth0_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechgaun%2Fauth0_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fauth0_ex/lists"}