{"id":15136109,"url":"https://github.com/itamco/django2-auth0-auth","last_synced_at":"2025-04-06T02:28:04.493Z","repository":{"id":57418698,"uuid":"172497013","full_name":"ITAMCO/django2-auth0-auth","owner":"ITAMCO","description":"Django Auth0 Auth allows you to authenticate through Auth0 in Django 2","archived":false,"fork":false,"pushed_at":"2019-02-25T17:53:13.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T00:41:11.431Z","etag":null,"topics":["auth0","django","django2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ITAMCO.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}},"created_at":"2019-02-25T11:55:11.000Z","updated_at":"2019-02-25T18:35:58.000Z","dependencies_parsed_at":"2022-09-13T07:52:14.183Z","dependency_job_id":null,"html_url":"https://github.com/ITAMCO/django2-auth0-auth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITAMCO%2Fdjango2-auth0-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITAMCO%2Fdjango2-auth0-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITAMCO%2Fdjango2-auth0-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITAMCO%2Fdjango2-auth0-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ITAMCO","download_url":"https://codeload.github.com/ITAMCO/django2-auth0-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247425444,"owners_count":20936951,"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","django","django2"],"created_at":"2024-09-26T06:04:07.505Z","updated_at":"2025-04-06T02:28:04.476Z","avatar_url":"https://github.com/ITAMCO.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django Auth0 Auth\n=================\n\n*Django Auth0 Auth* allows you to authenticate through Auth0 in Django 2\n\nInstallation\n------------\n\nRun `pip install django2-auth0-auth`\n\nAdd the `Auth0Backend` to your `AUTHENTICATION_BACKENDS` setting:\n\n```python\nAUTHENTICATION_BACKENDS = (\n    ...\n    'auth0_auth.backends.Auth0Backend',\n)\n```\n\nAdd the `Auth0Middleware` to your `MIDDLEWARE` setting:\n\n\n```python\nMIDDLEWARE = [\n    ...\n    'auth0_auth.middleware.Auth0Middleware'\n]\n```\n\nEdit your `urls.py` to include:\n\n```python\nfrom django.views.generic import RedirectView\n```\n\n```python\nurlpatterns = [\n    ...\n    #Add this BEFORE you include the admin urls, so admin login will redirect to auth0 login\n    path('admin/login/', RedirectView.as_view(pattern_name='auth0_login', permanent=False, query_string=True)),\n    #Add the auth0 urls\n    path('auth0/', include('auth0_auth.urls')),\n    ...\n]\n```\n\n\nSettings\n--------\n\n### AUTH0_DOMAIN\n\nAuth0 domain.\n\n### AUTH0_CLIENT_ID\n\nAuth0 client id.\n\n\n### AUTH0_CLIENT_SECRET\n\nAuth0 client secret.\n\n\n### AUTH0_SECRET_BASE64_ENCODED\n\n**default:** `False`\nFlag if Auth0 client secret is base64 encoded.\n\n\n### AUTH0_SCOPE\n\n**default:** `'openid email'`\nOAuth scope parameter.\n\n\n### AUTH0_RESPONSE_TYPE\n\n**default:** `'code'`\nOAuth response type parameter.\n\n\n### AUTH0_USER_CREATION\n\n**default:** `True`\nAllow creation of new users after successful authentication.\n\nLogging\n-------\nTo enable logging add `auth0_auth` to `LOGGING['loggers']` options.\n\n```python\nLOGGING = {\n    ...,\n    'loggers': {\n        ...,\n        'auth0_auth': {\n            'handlers': ['console'],\n            'level': 'DEBUG',\n        }\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitamco%2Fdjango2-auth0-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitamco%2Fdjango2-auth0-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitamco%2Fdjango2-auth0-auth/lists"}