{ "info": { "author": "Justin Mayer", "author_email": "entroP@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Security", "Topic :: Security :: Cryptography", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Kagi\n----\n\n.. image:: https://circleci.com/gh/justinmayer/kagi.svg?style=svg\n :target: https://circleci.com/gh/justinmayer/kagi\n\nKagi provides support for FIDO WebAuthn security keys and TOTP tokens in Django.\n\nKagi is a working proof-of-concept and isn't yet production ready. There are\nmany TODOs sprinkled around the code that should be fixed before relying on it.\n\nInstallation\n============\n\n::\n\n $ pip install kagi\n\nAdd ``kagi`` to ``INSTALLED_APPS`` and include ``kagi.urls`` somewhere in your\nURL patterns. Set ``LOGIN_URL = 'kagi:login'``.\n\nMake sure that Django's built-in login view does not have a\n``urlpattern``, because it will authenticate users without their second\nfactor. Kagi provides its own login view to handle that.\n\nDemo\n====\n\nTo see a demo, use the test project included in the repo and perform the\nfollowing steps (using a virtual environment is optional)::\n\n git clone https://github.com/justinmayer/kagi\n cd kagi\n make install\n make serve\n\n cd testproj\n python manage.py migrate\n python manage.py createsuperuser\n\nSupported browsers and versions can be found here: https://caniuse.com/webauthn\nWebAuthn also requires that the site is served over a secure (HTTPS) connection.\n\nStart by going to https://localhost:8000/kagi/login. Since you\nhaven't added any security keys yet, you will be logged in with just a\nusername and password.\n\nOnce logged in, click \"Add another key\" on the key management page and follow\nthe instructions. Now your account is protected by multi-factor authentication,\nand when you log in again your WebAuthn key or TOTP token will be required.\n\nYou can manage the keys attached to your account on the key\nmanagement page as well, at the URL https://localhost:8000/kagi/keys.\n\n\nUsing WebAuthn Keys on Linux\n============================\n\nSome distros don't come with udev rules to make USB HID /dev/\nnodes accessible to normal users. If your key doesn't light up\nand start flashing when you expect it to, this might be what is\nhappening. See https://github.com/Yubico/libu2f-host/issues/2 and\nhttps://github.com/Yubico/libu2f-host/blob/master/70-u2f.rules for some\ndiscussion of the rule to make it accessible. If you just want a quick\ntemporary fix, you can run ``sudo chmod 666 /dev/hidraw*`` every time\nafter you plug in your key (the files disappear after unplugging).\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/justinmayer/kagi", "keywords": "Django,WebAuthn,authentication,MFA,2FA", "license": "BSD-2-Clause", "maintainer": "Justin Mayer", "maintainer_email": "entroP@gmail.com", "name": "kagi", "package_url": "https://pypi.org/project/kagi/", "platform": "", "project_url": "https://pypi.org/project/kagi/", "project_urls": { "Homepage": "https://github.com/justinmayer/kagi", "Repository": "https://github.com/justinmayer/kagi" }, "release_url": "https://pypi.org/project/kagi/0.1.0/", "requires_dist": [ "Django (>=2.2,<3.0)", "qrcode (>=6.1,<7.0)", "webauthn (>=0.4.5,<0.5.0)" ], "requires_python": ">=3.6,<4.0", "summary": "Django app for WebAuthn and TOTP-based multi-factor authentication", "version": "0.1.0" }, "last_serial": 5710474, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c05af72614c650977c177a2d788cdc5c", "sha256": "b580a073959e196619d94edcec3107b8ce818cfac262e8ab5a6efb7d21c14235" }, "downloads": -1, "filename": "kagi-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c05af72614c650977c177a2d788cdc5c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 34530, "upload_time": "2019-08-20T07:24:32", "url": "https://files.pythonhosted.org/packages/a6/7e/cdb902301093aa2998c4732b0bdc53ba74ed72c7e1ecff558071371c6b71/kagi-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1410ece8790d4ed6e5dca0a8a26e26fa", "sha256": "ce2b64c76bd9e38a231b016182680de12cd503d2a06227b97484897471d5a15e" }, "downloads": -1, "filename": "kagi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1410ece8790d4ed6e5dca0a8a26e26fa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 24047, "upload_time": "2019-08-20T07:24:35", "url": "https://files.pythonhosted.org/packages/cd/5f/1c62349ce3c139338c742581c2a5f979d0f4d3121a23b4b8f9f7a9b007fb/kagi-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c05af72614c650977c177a2d788cdc5c", "sha256": "b580a073959e196619d94edcec3107b8ce818cfac262e8ab5a6efb7d21c14235" }, "downloads": -1, "filename": "kagi-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c05af72614c650977c177a2d788cdc5c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 34530, "upload_time": "2019-08-20T07:24:32", "url": "https://files.pythonhosted.org/packages/a6/7e/cdb902301093aa2998c4732b0bdc53ba74ed72c7e1ecff558071371c6b71/kagi-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1410ece8790d4ed6e5dca0a8a26e26fa", "sha256": "ce2b64c76bd9e38a231b016182680de12cd503d2a06227b97484897471d5a15e" }, "downloads": -1, "filename": "kagi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1410ece8790d4ed6e5dca0a8a26e26fa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 24047, "upload_time": "2019-08-20T07:24:35", "url": "https://files.pythonhosted.org/packages/cd/5f/1c62349ce3c139338c742581c2a5f979d0f4d3121a23b4b8f9f7a9b007fb/kagi-0.1.0.tar.gz" } ] }