{ "info": { "author": "Tomasz Wysocki", "author_email": "tomasz@wysocki.info", "bugtrack_url": null, "classifiers": [], "description": "django-facebook-auth\n========================\n\n.. image:: https://travis-ci.org/pozytywnie/django-facebook-auth.svg\n :target: https://travis-ci.org/pozytywnie/django-facebook-auth\n\nA stable Facebook authentication backend for Django >= 1.4.\n\nStarting from version 3.6.0 Django 1.7 is supported. South migrations are move to south_migrations so you need South 1.0 or newer to use them.\n\nRequires Celery for background token operations.\n\n\nInstallation\n------------\n\nPackage\n_______\n\ndjango-facebook-auth can be installed as a normal Python package.\n\nExample installation for pip::\n\n $ pip install django-facebook-auth\n\n\nConfiguration\n-------------\n\nCelery\n______\n\nThis project requires working Celery integration. In case you are new to\nCelery, the `First steps with Django tutorial\n`_\nwill help you to hit the ground running.\n\n\nsettings.py\n___________\n\nSet USE_TZ = True\n\nAdd facebook_auth to INSTALLED_APPS::\n\n INSTALLED_APPS = (\n ...\n 'facebook_auth',\n ...\n )\n\nAdd authentication backends to AUTHENTICATION_BACKENDS::\n\n AUTHENTICATION_BACKENDS = (\n ...\n 'facebook_auth.backends.FacebookBackend',\n 'facebook_auth.backends.FacebookJavascriptBackend',\n ...\n )\n\nSet necessary Facebook properties::\n\n FACEBOOK_CANVAS_URL = 'http://pozytywnie.pl/' # root of your domain\n FACEBOOK_APP_ID = '1234567890'\n FACEBOOK_APP_SECRET = '91162629d258a876ee994e9233b2ad87'\n\n\nUsage\n-----\n\nThe authentication flow is very straightforward:\n\n1. Redirect your user to Facebook OAuth endpoint using redirect_uri prepared\n with the help of this library.\n\n First in your view or context processor prepare the necessary parameters\n for the Facebook OAuth endpoint::\n\n from facebook_auth.urls import redirect_uri\n\n def login(request):\n ...\n context.update({\n 'redirect_uri': redirect_uri('/login/success', '/login/fail'),\n 'client_id': settings.FACEBOOK_APP_ID,\n 'scope': 'email'\n })\n ...\n\n And embed the link in your template::\n\n Login using Facebook\n\n2. User is redirected back to django-facebook-auth authentication handler,\n which either authenticates the user or refuses to do so.\n\n Prepare a separate view for each scenario.\n\n3. A best token for authenticated user is negotiated with Facebook in the\n background, using your Celery worker.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pozytywnie/django-facebook-auth", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-facebook-auth-tmp", "package_url": "https://pypi.org/project/django-facebook-auth-tmp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-facebook-auth-tmp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pozytywnie/django-facebook-auth" }, "release_url": "https://pypi.org/project/django-facebook-auth-tmp/3.9.0.1/", "requires_dist": null, "requires_python": null, "summary": "Authorisation app for Facebook API.", "version": "3.9.0.1" }, "last_serial": 2373492, "releases": { "3.9.0.1": [ { "comment_text": "", "digests": { "md5": "80174f7768e8ca738817ea8e968ca4a8", "sha256": "eb1e6ff0ac6dd20590ba6c4448be625efdcd365b32d8d364e15c1351fa2edd08" }, "downloads": -1, "filename": "django-facebook-auth-tmp-3.9.0.1.tar.gz", "has_sig": false, "md5_digest": "80174f7768e8ca738817ea8e968ca4a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18624, "upload_time": "2016-09-30T14:56:50", "url": "https://files.pythonhosted.org/packages/9b/17/fbaf02614c1fd2f85c004cd4b974e45eb29b87f4a5b47ebe24a893ec9c2f/django-facebook-auth-tmp-3.9.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "80174f7768e8ca738817ea8e968ca4a8", "sha256": "eb1e6ff0ac6dd20590ba6c4448be625efdcd365b32d8d364e15c1351fa2edd08" }, "downloads": -1, "filename": "django-facebook-auth-tmp-3.9.0.1.tar.gz", "has_sig": false, "md5_digest": "80174f7768e8ca738817ea8e968ca4a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18624, "upload_time": "2016-09-30T14:56:50", "url": "https://files.pythonhosted.org/packages/9b/17/fbaf02614c1fd2f85c004cd4b974e45eb29b87f4a5b47ebe24a893ec9c2f/django-facebook-auth-tmp-3.9.0.1.tar.gz" } ] }