{"id":22261033,"url":"https://github.com/obaraelijah/django-otp","last_synced_at":"2025-10-13T12:31:45.552Z","repository":{"id":189480600,"uuid":"680751715","full_name":"obaraelijah/django-otp","owner":"obaraelijah","description":"Django (DRF) OTP Authentication and Verification","archived":false,"fork":false,"pushed_at":"2023-08-23T16:56:03.000Z","size":251,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T10:36:52.720Z","etag":null,"topics":["authentication-backend","authorization","django","django-rest-framework","docker","otp","otp-verification","twillio-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/obaraelijah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-08-20T09:32:23.000Z","updated_at":"2025-03-18T15:18:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a8fd487-0cf6-4750-b239-f40282089bc5","html_url":"https://github.com/obaraelijah/django-otp","commit_stats":null,"previous_names":["obaraelijah/django-otp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/obaraelijah/django-otp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obaraelijah%2Fdjango-otp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obaraelijah%2Fdjango-otp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obaraelijah%2Fdjango-otp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obaraelijah%2Fdjango-otp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obaraelijah","download_url":"https://codeload.github.com/obaraelijah/django-otp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obaraelijah%2Fdjango-otp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015056,"owners_count":26085643,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["authentication-backend","authorization","django","django-rest-framework","docker","otp","otp-verification","twillio-api"],"created_at":"2024-12-03T09:11:14.717Z","updated_at":"2025-10-13T12:31:45.050Z","avatar_url":"https://github.com/obaraelijah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django - DRF \u0026 OTP verification\n\n\u003cp\u003e\n  \u003ca href=\"https://twitter.com/talkcoding\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Twitter: talkcoding\" src=\"https://img.shields.io/twitter/follow/Talkcoding.svg?style=social\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n👋This app shows how to handle mobile phone authentication and verification for a user management solution. \u003cbr\u003e\nComplete guide: [Click here](https://medium.com/aws-tip/implementing-mobile-number-verification-and-otp-based-authentication-in-django-django-rest-48c54382e989)\n## Tools \u0026 Services:\n- Django \u0026 DRF : for building the APIs\n- Docker \u0026 Docker compose: Containerization\n- Celery: For running background task\n- Rabbit MQ: A message broker for celery\n- Flower dashboard: For monitoring celery background tasks\n- PostgreSQL: Relational DB\n- Twilio: SMS notifications\n\n\n## By the end of this tutorial \n- Onboard a user on the system via phone number verification\n- Reset user password via OTP sent to user.\n- Authenticate a user using phone number and password\n\n## Running locally\n\nCreate a .env file by copying the .env.sample provided and run:\n```\ndocker compose build \u0026\u0026 docker compose up\n```\nto start the container. As an alternative, run:\n```\ndocker-compose -f docker-compose.dev.yml up --build\n```\nto build and run the container using the dev yaml file.\nMake sure to externalize the db instance to be used. It can be in another container.\n\n## Run tests\nRun descriptive tests in the container using:\n```\ndocker compose exec \u003cdocker_container_name\u003e pytest -rP -vv\n```\n\nAccess the docs on:\n\n```\nhttp://localhost:8000/api/v1/doc\n```\n\n\n## Running In a Virtual Env\n\nCreate a virtual environment using:\n```\nmkvirtualenv \u003cenv_name\u003e\n```\n\nEnsure you have installed `virtualenv` on your system and install dev dependencies using\n```\npip install -r app/requirements/dev.txt\n```\n\nNavigate to app directory and run migrations using:\n```\npython manage.py makemigrations\n\npython manage.py migrate\n```\n\nRun the server using:\n```\npython manage.py runserver\n```\nAccess docs:\n```sh\nhttp://localhost:8000/api/v1/doc\n```\n![Screenshot](screenshot1.png)\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n![Screenshot](screenshot2.png)\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobaraelijah%2Fdjango-otp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobaraelijah%2Fdjango-otp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobaraelijah%2Fdjango-otp/lists"}