{ "info": { "author": "Sergei Maertens", "author_email": "sergeimaertens@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Application Frameworks" ], "description": "Django Sessionprofile\n=====================\n\n.. image:: https://travis-ci.org/modelbrouwers/django-sessionprofile.svg?branch=master\n :target: https://travis-ci.org/modelbrouwers/django-sessionprofile\n\n\n.. image:: https://coveralls.io/repos/modelbrouwers/django-sessionprofile/badge.svg\n :target: https://coveralls.io/r/modelbrouwers/django-sessionprofile\n\n\n.. image:: https://readthedocs.org/projects/django-sessionprofile/badge/?version=latest\n :target: https://readthedocs.org/projects/django-sessionprofile/?badge=latest\n\n\n.. image:: https://img.shields.io/pypi/v/django-sessionprofile.svg\n :target: https://pypi.python.org/pypi/django-sessionprofile\n\n\ndjango-sessionprofile is the bridge between any software with customizable\nauth backends and Django. If you want to use Django for Single-Sign-On, this\npackage does the Django heavy lifting.\n\n\nInstallation - Django\n---------------------\n\n $ pip install django-sessionprofile\n\nAdd `sessionprofile` to INSTALLED_APPS, and run `python manage.py migrate`.\n\nAdd the sessionprofile middleware (`sessionprofile.middleware.SessionProfileMiddleware`) to your middleware settings - make sure it comes before the `SessionMiddleware`.\n\nAdditionally, the session cookie must be available for the third party application,\nthis should not be a problem if it lives on the same domain.\n\nBackend\n-------\nCurrently one backend is available: `'sessionprofile.backends.DatabaseBackend'`.\nIn the future, alternative backends will be possible, like `'sessionprofile.backends.CachedDatabaseBackend'`.\n\nInstallation - third party application\n--------------------------------------\nThis depends on which backend you decided to use, the example assumes the db\nbackend.\n\nWhen authenticating in the third party application, you should read the session\ncookie (SESSION_COOKIE_NAME), and query the sessionprofile table:\n\n SELECT users_user.username, users_user.email FROM\n users_user, sessionprofile_sessionprofile sp WHERE\n sp.session_id = ''\n AND users_user.id = sp.user_id\n\nIt's up to you to implement the rest of the authentication flow. An example for phpBB 3.0.x is provided in the docs.\n\nThanks\n------\nMany thanks go to Resolver Systems Ltd (now part of PythonAnywhere) who\nmade the initial version of this library, specifically aimed on phpBB3.\n\nTodo\n----\nDjango 1.9 will ship with customizable DB Session Backends, we might provide\nsuch a backend which would reduce the need for the middleware.\n\nSee `Github PR`_.\n\n.. _`Github PR`: https://github.com/sergeykolosov/django/commit/e9b913f1213f8debbc7692b37df637e6143a54c0", "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/modelbrouwers/django-sessionprofile", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-sessionprofile", "package_url": "https://pypi.org/project/django-sessionprofile/", "platform": "any", "project_url": "https://pypi.org/project/django-sessionprofile/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/modelbrouwers/django-sessionprofile" }, "release_url": "https://pypi.org/project/django-sessionprofile/1.0/", "requires_dist": null, "requires_python": null, "summary": "Use Django for SSO - this package provides a bridge for third party packages.", "version": "1.0" }, "last_serial": 2279468, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a7b0c7859aa9a202bc86bcf1b8d7c8b9", "sha256": "38073d152689a876417989255c929d3bf9ab73bf70cf91a4dae08dfe6413b721" }, "downloads": -1, "filename": "django-sessionprofile-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a7b0c7859aa9a202bc86bcf1b8d7c8b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4576, "upload_time": "2015-05-27T07:04:07", "url": "https://files.pythonhosted.org/packages/41/c7/7a97cda3533b3d9ebf8e522945e2e2147ea83382e41aba8c51a0a6a3e4e8/django-sessionprofile-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9fcab82d1b386f9c04df25499b3f6af4", "sha256": "a8f872fca5be47ea8558e650b6c4df0322763feb7a5c0d630c8aa014f9f16c67" }, "downloads": -1, "filename": "django-sessionprofile-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9fcab82d1b386f9c04df25499b3f6af4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4576, "upload_time": "2015-05-27T10:04:22", "url": "https://files.pythonhosted.org/packages/b3/1e/f4fae4e9525f864fe4f567c8a9ec54536ac0a971a5fdae14ecfe9a36a766/django-sessionprofile-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c1f2e83f8297a857d08a5ada63c1b8fd", "sha256": "01d6fb1e15ad3234dba4d2c31c09108520a661ff5d4ce646302b1ce76fdcec88" }, "downloads": -1, "filename": "django-sessionprofile-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c1f2e83f8297a857d08a5ada63c1b8fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4845, "upload_time": "2015-07-24T18:31:13", "url": "https://files.pythonhosted.org/packages/55/64/1a198bb84ab3396316a38d720d5040dbfa817bf2ac1cb39fb2d9f7f0a26e/django-sessionprofile-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f76718da97f42713b9385628354d5495", "sha256": "fae1969ff50f4690cca5e323ac251ee55f89f6cd08fa6a1d038d8aa8bfeea284" }, "downloads": -1, "filename": "django-sessionprofile-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f76718da97f42713b9385628354d5495", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4887, "upload_time": "2015-12-04T11:41:19", "url": "https://files.pythonhosted.org/packages/1c/6c/89d7bd4a39be5467c004b2e6411779a58d415b512f38ca4fafc0d0e552b2/django-sessionprofile-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "bd0cb1f1559f584f02b942b2b457b202", "sha256": "02a79acab78af3ed0d01a8353936ae37f5ad6fbe8150073d1332a58636d317d4" }, "downloads": -1, "filename": "django-sessionprofile-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bd0cb1f1559f584f02b942b2b457b202", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5237, "upload_time": "2016-08-01T19:48:55", "url": "https://files.pythonhosted.org/packages/99/d0/abe692f6e9c1ef894ff60ebb55d51da0eae568b4d69764cc02d53c5d958d/django-sessionprofile-0.2.0.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "1af38910baa8007e22b62472ae801118", "sha256": "a9fc6931581343a226713924d8581d0e38760ff628568f67d3b245037e97e139" }, "downloads": -1, "filename": "django_sessionprofile-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1af38910baa8007e22b62472ae801118", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11174, "upload_time": "2016-08-13T08:45:24", "url": "https://files.pythonhosted.org/packages/18/e6/7cf409880d1173723d29adf1c48c4c319fc3979c8b0c3d5351f0d1a24efc/django_sessionprofile-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecf7747882994272645761ec4400b0e9", "sha256": "248baa7dfa85b4f96fb0b1cecf03c562d1fc2da3c5aed37417071c00752626cc" }, "downloads": -1, "filename": "django-sessionprofile-1.0.tar.gz", "has_sig": false, "md5_digest": "ecf7747882994272645761ec4400b0e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5647, "upload_time": "2016-08-13T08:45:16", "url": "https://files.pythonhosted.org/packages/e1/7a/089a3ad0c8cf35458c771d0e8f01f7e6e6f37f6b2d929782bc7c6f53b943/django-sessionprofile-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1af38910baa8007e22b62472ae801118", "sha256": "a9fc6931581343a226713924d8581d0e38760ff628568f67d3b245037e97e139" }, "downloads": -1, "filename": "django_sessionprofile-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1af38910baa8007e22b62472ae801118", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11174, "upload_time": "2016-08-13T08:45:24", "url": "https://files.pythonhosted.org/packages/18/e6/7cf409880d1173723d29adf1c48c4c319fc3979c8b0c3d5351f0d1a24efc/django_sessionprofile-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecf7747882994272645761ec4400b0e9", "sha256": "248baa7dfa85b4f96fb0b1cecf03c562d1fc2da3c5aed37417071c00752626cc" }, "downloads": -1, "filename": "django-sessionprofile-1.0.tar.gz", "has_sig": false, "md5_digest": "ecf7747882994272645761ec4400b0e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5647, "upload_time": "2016-08-13T08:45:16", "url": "https://files.pythonhosted.org/packages/e1/7a/089a3ad0c8cf35458c771d0e8f01f7e6e6f37f6b2d929782bc7c6f53b943/django-sessionprofile-1.0.tar.gz" } ] }