{ "info": { "author": "Shahzeb Qureshi", "author_email": "shahzeb_iam@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development" ], "description": "# django-accountkit\n**Using Facebook accountkit with Django https://developers.facebook.com/products/account-creation**\n\n[![PyPI version](https://badge.fury.io/py/django-accountkit.svg)](https://badge.fury.io/py/django-accountkit) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/django-accountkit)\n\n\n## Overview\n\nThis package enables the use of Facebook Accountkit with Django authentication\n\nIf you want to know more about Facebook Accountkit, check out the following resources\n- https://auth0.com/blog/facebook-account-kit-passwordless-authentication/\n- https://developers.facebook.com/docs/accountkit\n\n## Requirements\n\n- Python (>= 2.7 and <= 3.7)\n- Django (>=1.11)\n\n\n## Installation\n\nInstallation is easy using ``pip``\n\n\tpip install django-accountkit\n\nThen to add Django Accountkit to your project add the app ``accountkitlogin`` to your ``INSTALLED_APPS``.\n\nNow add the following settings in your settings.py file\n\n\n\tAPP_ID = \n\tACCOUNT_KIT_APP_SECRET = \n\tACCOUNT_KIT_VERSION = \"v1.0\"\n\tACCOUNT_KIT_SUCCESS_REDIRECT = (Please Use absolute path only)\n\t#Example ACCOUNT_KIT_SUCCESS_REDIRECT = \"http://localhost:8000/success\"\n\nThen add the following in your settings.py file\n\n\tAUTHENTICATION_BACKENDS = (\n\t\t'accountkitlogin.authenticate.GetOrCreateUser',\n\t)\n\n## Using Accountkitlogin\n\n### View\n\nTo use Accountkit to authenticate your users import ``from accountkitlogin.views import login_status``\n\nThen in your view use ``login_status``\n\n\t@csrf_exempt\n\tdef success_page(request):\n\t\tcontext = login_status(request)\n\nNote that csrf exempt is required because Facebook Accountkit will redirect the user to your success page url and this might throw a cross origin error\n\nThe ```login_status``` function accepts the request as parameter and returns a dictionary with\n\n- Key 'authenticated' True or False\n- Key 'message' A message related to whether the user is authenticated or not\n- Key 'user' Returns a user instance when 'authenticated' is True\n\nAdd the view to your urls.py file for the success_page url which you defined in ``ACCOUNT_KIT_SUCCESS_REDIRECT`` setting\n\n### Template Tags\n\nAdd ``{% load accountkit %}`` at the starting of your template and add the following template tags to your file where you want to display the login buttons\n\n1) Add ``(% accountkitjs %}`` inside your ```` tag\n2) Add ``{% accountkitform %}`` inside your ```` tag\n3) Add ``{% smslogin %}`` and/or ``{% emaillogin %}`` anywhere in you body section where you want to display your login buttons. Both these tags accept two parameters className and text where you can add your custom css classes and the text to display on the button. Example ``{% emaillogin \"button\" \"Use the email\" %}``\n\n## Notes\n\n### Contribute\n\nPlease contribute to this repositiory :)\n\n### Author\n\n- Follow the author on [Linkedin](https://www.linkedin.com/in/shahzebq)\n\n### This is project is inspired by\n\n- The flask implementation of accountkit at https://github.com/everping/accountkit\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/antiproblemist/django-accountkit", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-accountkit", "package_url": "https://pypi.org/project/django-accountkit/", "platform": "", "project_url": "https://pypi.org/project/django-accountkit/", "project_urls": { "Homepage": "https://github.com/antiproblemist/django-accountkit" }, "release_url": "https://pypi.org/project/django-accountkit/0.2.3/", "requires_dist": [ "Django (>=1.11)", "requests (>=2.18.4)" ], "requires_python": "", "summary": "Facebook accountkit support for Django", "version": "0.2.3" }, "last_serial": 5623880, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "99ffa25e49ef8f92ef373cdf7690c8c0", "sha256": "e335c2cf8b8c8a905a6b103415f54b55c220ed73496ff687e66850fb68223894" }, "downloads": -1, "filename": "django_accountkit-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "99ffa25e49ef8f92ef373cdf7690c8c0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6206, "upload_time": "2018-04-02T11:22:12", "url": "https://files.pythonhosted.org/packages/d0/a5/3f437e1af8cc2d236d08e3ae8d0a8c0795eb335a398725135956a9d4cf54/django_accountkit-0.1.0-py2-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6a503ddaa416a2e899b136142d7adc4d", "sha256": "a3cf31993d552b317772c985c476c45ecade85aefaac57744333c9c33bb80abb" }, "downloads": -1, "filename": "django_accountkit-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "6a503ddaa416a2e899b136142d7adc4d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6202, "upload_time": "2018-04-04T04:53:48", "url": "https://files.pythonhosted.org/packages/55/f8/77dc25fda91876ba408ce3271ed7fabca6cd6329f10e785cf91e63dada0e/django_accountkit-0.1.1-py2-none-any.whl" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "d8f37205dc529d1c272cb86c6a213a3f", "sha256": "3038ac259a32372779209ebcea36be4dd76e468089c718f835691b3eae75e383" }, "downloads": -1, "filename": "django_accountkit-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d8f37205dc529d1c272cb86c6a213a3f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5159, "upload_time": "2019-04-24T10:06:00", "url": "https://files.pythonhosted.org/packages/f8/b2/452846aadc4e5686c2a66743bece16382e0c3d0eeb1abf7c2f1605c049db/django_accountkit-0.2.1-py3-none-any.whl" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "2b28f9d90f7adc7bc22b0bffa5fb7c0c", "sha256": "22923b7a6d16124fa94b1a52e7fb9168bbb107b4bb6296d2987c0a1e07e59671" }, "downloads": -1, "filename": "django_accountkit-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2b28f9d90f7adc7bc22b0bffa5fb7c0c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7245, "upload_time": "2019-08-02T12:04:28", "url": "https://files.pythonhosted.org/packages/b0/11/56acb46443bff0467853fbf3533bfc7518b611166453a64b93f2e66add59/django_accountkit-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bdf2390a9ce339b877091760d34c1755", "sha256": "d1e513c9d72a7137a1568d77cc5b52bc25a5e8456aa3e7e07f443fc27ff5a7f1" }, "downloads": -1, "filename": "django-accountkit-0.2.2.tar.gz", "has_sig": false, "md5_digest": "bdf2390a9ce339b877091760d34c1755", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5003, "upload_time": "2019-08-02T12:04:29", "url": "https://files.pythonhosted.org/packages/1c/d5/076c259f41eb1749112d0ec0c2ecd5e0e5d6d6b90ebf437797daee922ccb/django-accountkit-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "aa32bc34f5881515cc65117d64736dc0", "sha256": "e75f99b62a4dce7a58599b3a415596f5201afa3c07ccf80fd5dff582d0a0c240" }, "downloads": -1, "filename": "django_accountkit-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "aa32bc34f5881515cc65117d64736dc0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7247, "upload_time": "2019-08-02T12:14:28", "url": "https://files.pythonhosted.org/packages/e9/86/f39e2570ec6e5a86c1d6d23f7f961c4d2c1dcb2e1a139f0072759501b765/django_accountkit-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "077b643edc99114e9c85f957b749ebb8", "sha256": "665727291c8525fff0de935e264dd05a46c782bf3eb247342cc6e54a87533a57" }, "downloads": -1, "filename": "django-accountkit-0.2.3.tar.gz", "has_sig": false, "md5_digest": "077b643edc99114e9c85f957b749ebb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5006, "upload_time": "2019-08-02T12:14:29", "url": "https://files.pythonhosted.org/packages/36/ed/8f4be437a43fab1f1587080f099d4bb5125a5dd0c5afb91725f66fe32302/django-accountkit-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aa32bc34f5881515cc65117d64736dc0", "sha256": "e75f99b62a4dce7a58599b3a415596f5201afa3c07ccf80fd5dff582d0a0c240" }, "downloads": -1, "filename": "django_accountkit-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "aa32bc34f5881515cc65117d64736dc0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7247, "upload_time": "2019-08-02T12:14:28", "url": "https://files.pythonhosted.org/packages/e9/86/f39e2570ec6e5a86c1d6d23f7f961c4d2c1dcb2e1a139f0072759501b765/django_accountkit-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "077b643edc99114e9c85f957b749ebb8", "sha256": "665727291c8525fff0de935e264dd05a46c782bf3eb247342cc6e54a87533a57" }, "downloads": -1, "filename": "django-accountkit-0.2.3.tar.gz", "has_sig": false, "md5_digest": "077b643edc99114e9c85f957b749ebb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5006, "upload_time": "2019-08-02T12:14:29", "url": "https://files.pythonhosted.org/packages/36/ed/8f4be437a43fab1f1587080f099d4bb5125a5dd0c5afb91725f66fe32302/django-accountkit-0.2.3.tar.gz" } ] }