{ "info": { "author": "Alexander Vyushkov", "author_email": "alex.vyushkov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# django-auth-pubtkt\n\nAuthor: Alexander Vyushkov\n\nImplementation of mod_auth_pubtkt: a pragmatic Web Single Sign-On (SSO) solution as Django middleware.\nThis version was tested on Python == 2.7, Django == 1.11\n \nIt is incompatible with previous versions (use django-auth-pubtkt==1.1.2 for Django 1.5)\n\nPlease refer to https://neon1.net/mod_auth_pubtkt/index.html for additional details.\n \n# Installation from GitHub\n\n```bash\npip install git+git://github.com/Baguage/django-auth-pubtkt@master#egg=django-auth-pubtkt\n ```\n\n# Installation:\n\ndjango-auth-pubtkt uses M2Crypto library. Installation instructions for\ndifferent platforms are below.\nWhen M2Crypto is installed, django-auth-pubtkt can be installed using pip\npip install django-auth-pubtkt\nor using setuptools\n./setup.py install\n\n# Windows\n\nUse binary package available on http://chandlerproject.org/Projects/MeTooCrypto#Downloads\n\n# RedHat 7 + Python 3.5\n\nI got \"Failed building wheel for m2crypto\" when used \"pip install m2crypto\" command.\nThe library was installed successfully, and all tests passed, somehow.\n\n# CentOS 6/RedHat 6/Fedora\n\nFedora Core (and RedHat, CentOS etc.) have made changes to OpenSSL\nconfiguration compared to many other Linux distributions. If you can not\nbuild M2Crypto normally, try the fedora_setup.sh script included with\nM2Crypto sources.\n\npip install --download=/tmp M2Crypto==0.21.1\ncd /tmp\ntar -zxf /tmp/M2Crypto-0.21.1.tar.gz\ncd M2Crypto-0.21.1\n./fedora_setup.sh install\npython setup.py test\n\nNote that setup.py test is required in some cases to fix \"ImportError: No module named __m2crypto\" error. \nlease refer to http://stackoverflow.com/questions/4773659/cant-install-a-python-package for additional details\n\nCentOS 7/RedHat 7 should be fine\n\n# Configuration\n\nAdd 'django_auth_pubtkt.middleware.DjangoAuthPubtkt' to MIDDLEWARE (Django 1.11+)\n\n* Change LOGIN_URL to \"/sso/\"\n* Set TKT_AUTH_LOGIN_URL to the address of SSO login page\n* Add piece of code below to urls.py\n\n```python\nfrom django.conf.urls import url\nfrom django_auth_pubtkt.views import redirect_to_sso\n\nurlpatterns = [\n# ...\nurl('^sso/', redirect_to_sso),\n# ...\n]\n```\n\nOR\n\nChange LOGIN_URL to the address of SSO login page.\nConfigure your SSO to use 'next' as redirect field name.\n\nOR\n\nuse @method_decorator(login_required(redirect_field_name=\"back\"))\n\n# Configuration variables (settings.py)\n\n```\nTKT_AUTH_PUBLIC_KEY\nDefault: None\nFilename of DSA public key in .pem format. It is used to verify ticket signature.\n\nTKT_AUTH_COOKIE_NAME\nDefault: \"auth_pubtkt\"\nName of the authentication cookie to use.\n\nTKT_AUTH_USE_GROUPS\nDefault: False\nTreat tokens as group names. Create groups if they don't exist yet.\n\nTKT_AUTH_LOGIN_URL\nDefault: None\nURL that users without a valid ticket will be redirected to\n\nTKT_AUTH_BACK_ARG_NAME\nDefault: \"back\"\nName of the GET argument with the originally requested URL (when redirecting to the login page)\n\nTKT_AUTH_ANONYMOUS_USER\nDefault: True\nAdd AnonymousUser object if no auth_pubtkt cookie is found. If set, django_auth_pubtkt can be used as a replacement to AuthenticationMiddleware.\nIf disabled, AuthenticationMiddleware and django_auth_pubtkt can be used together.\n```", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Baguage/django-auth-pubtkt", "keywords": "django auth mod_auth_pubtkt", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-auth-pubtkt", "package_url": "https://pypi.org/project/django-auth-pubtkt/", "platform": "", "project_url": "https://pypi.org/project/django-auth-pubtkt/", "project_urls": { "Homepage": "https://github.com/Baguage/django-auth-pubtkt" }, "release_url": "https://pypi.org/project/django-auth-pubtkt/2.0.1/", "requires_dist": null, "requires_python": "", "summary": "Implementation of mod_auth_pubtkt as Django middleware", "version": "2.0.1" }, "last_serial": 3657759, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f10aa51f442cf0155f60a1143da68d5d", "sha256": "eef351ddcffb3a5619949209d60663c1e12033706a079257d2d702997b61d7b3" }, "downloads": -1, "filename": "django-auth-pubtkt-1.0.0.win32.exe", "has_sig": false, "md5_digest": "f10aa51f442cf0155f60a1143da68d5d", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 206868, "upload_time": "2013-09-25T01:02:21", "url": "https://files.pythonhosted.org/packages/3b/d0/6659c8e8a29c13f51aaffd42eb8b0ecc209d78ca1330c9e7e43ffe1a203a/django-auth-pubtkt-1.0.0.win32.exe" }, { "comment_text": "", "digests": { "md5": "6d9a958b6495fa0d70ecd52008c20829", "sha256": "2dbdaf0e7072dddfe43e8e5e88db8148f6ac4760890ed17d64117512c53e24cb" }, "downloads": -1, "filename": "django-auth-pubtkt-1.0.0.zip", "has_sig": false, "md5_digest": "6d9a958b6495fa0d70ecd52008c20829", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11630, "upload_time": "2013-09-25T01:02:19", "url": "https://files.pythonhosted.org/packages/2c/ca/2430a9b3891ec090db2918e8866666fafae3d93036eb420a2c84f32bf957/django-auth-pubtkt-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "88b3ca0c11119b862f1c9e3ade0f6e6e", "sha256": "0e96a504504fb7cf9f38f139cf6b3b4b5ee4e7a3a8d7f52b314d611ade7ae9fb" }, "downloads": -1, "filename": "django-auth-pubtkt-1.0.1.win32.exe", "has_sig": false, "md5_digest": "88b3ca0c11119b862f1c9e3ade0f6e6e", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 206863, "upload_time": "2013-09-25T01:07:56", "url": "https://files.pythonhosted.org/packages/91/92/3180d2dcb8fbe6706064cc852055175a3919669d2f7ebda9a181b1c797f5/django-auth-pubtkt-1.0.1.win32.exe" }, { "comment_text": "", "digests": { "md5": "e43feba84a2e26fb87c0a54f6974023f", "sha256": "ccd8c51f00edf04c00a5b964a47281318db5ef9778b3ceece52f17c8e465b2d6" }, "downloads": -1, "filename": "django-auth-pubtkt-1.0.1.zip", "has_sig": false, "md5_digest": "e43feba84a2e26fb87c0a54f6974023f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11287, "upload_time": "2013-09-25T01:07:53", "url": "https://files.pythonhosted.org/packages/0a/33/c132784cfbf2d73a412dd8ac66f1d243695a2831c229b9c630b59b5d20f9/django-auth-pubtkt-1.0.1.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "fa27f215f455e8c6f5d8a3d993c7a9ba", "sha256": "b1d0c8ff8312b4d1a947ec4d37e0b9ff18af39ef6b7724a9113f1e344ddc2e5f" }, "downloads": -1, "filename": "django-auth-pubtkt-1.0.2.win32.exe", "has_sig": false, "md5_digest": "fa27f215f455e8c6f5d8a3d993c7a9ba", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 206866, "upload_time": "2013-09-25T01:22:22", "url": "https://files.pythonhosted.org/packages/be/98/f8a1f58762ba74da27e97c337e65913677d01bab2da1d299249684ea74b2/django-auth-pubtkt-1.0.2.win32.exe" }, { "comment_text": "", "digests": { "md5": "0b7280503279d2640a0c04852d5fd3ef", "sha256": "c15d89557a33643fea0aed7fe460b71cb8e9793d033aa56d1fad51e40afebf52" }, "downloads": -1, "filename": "django-auth-pubtkt-1.0.2.zip", "has_sig": false, "md5_digest": "0b7280503279d2640a0c04852d5fd3ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11289, "upload_time": "2013-09-25T01:22:20", "url": "https://files.pythonhosted.org/packages/89/59/4f8c2bb2b693a811ed3c532fd69905078e3c4a588c708dc2edc191247c0b/django-auth-pubtkt-1.0.2.zip" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "8eef66412630a27267cdb1e486c70afe", "sha256": "126cb6bd94ba2a704f2a0edfe970059fd9b4cc1f55d7206e691ae3b40cc6737e" }, "downloads": -1, "filename": "django-auth-pubtkt-1.1.0.win32.exe", "has_sig": false, "md5_digest": "8eef66412630a27267cdb1e486c70afe", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 207559, "upload_time": "2013-12-22T13:09:45", "url": "https://files.pythonhosted.org/packages/be/fa/68493d4e37711f515fb4159f6dcfdc80da32c30249723b968fee92cdb636/django-auth-pubtkt-1.1.0.win32.exe" }, { "comment_text": "", "digests": { "md5": "97d6c2a54decfed0d7f661547159a6f7", "sha256": "d60ca8e02b60a8b00cf20509c02d8883055d4622a1a7d50b5b9f36d62e98adcd" }, "downloads": -1, "filename": "django-auth-pubtkt-1.1.0.zip", "has_sig": false, "md5_digest": "97d6c2a54decfed0d7f661547159a6f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12016, "upload_time": "2013-12-22T13:09:43", "url": "https://files.pythonhosted.org/packages/f6/7e/b9e9607f756e8531010fe926dd6aa84936a8edfa3556d95d16ec5627c1a2/django-auth-pubtkt-1.1.0.zip" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1ed836e0694dbd1df42defdc8417e2e2", "sha256": "892f4fca5e5346b6c425ab8688f52580bb6f01c7800e102e340f172c92f5fa4b" }, "downloads": -1, "filename": "django-auth-pubtkt-1.1.1.win32.exe", "has_sig": false, "md5_digest": "1ed836e0694dbd1df42defdc8417e2e2", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 208313, "upload_time": "2014-01-02T20:09:09", "url": "https://files.pythonhosted.org/packages/84/65/6e825775634c58e6f7e0833a7bd4eae54f2e6d28f2903f0ebc3083d4929f/django-auth-pubtkt-1.1.1.win32.exe" }, { "comment_text": "", "digests": { "md5": "5aba57f4e98aa638e73553aff494ceb4", "sha256": "fbc29149292a8ab4040ef9a30f64ec5140cb96e7d2d89ba809135eac84fbb89a" }, "downloads": -1, "filename": "django-auth-pubtkt-1.1.1.zip", "has_sig": false, "md5_digest": "5aba57f4e98aa638e73553aff494ceb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12677, "upload_time": "2014-01-02T20:09:07", "url": "https://files.pythonhosted.org/packages/db/27/f72af9918ba336b7e5cbbf34cce7e959fbdfba353114ca44df3276cad9a5/django-auth-pubtkt-1.1.1.zip" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "554507613f735dfc4944ff2a0ab0acda", "sha256": "625097763aed7039c3053e46f68cfa5f6ee40d025fd548826ef2a2c8addbf2f5" }, "downloads": -1, "filename": "django-auth-pubtkt-1.1.2.win32.exe", "has_sig": false, "md5_digest": "554507613f735dfc4944ff2a0ab0acda", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 208438, "upload_time": "2014-02-02T02:40:19", "url": "https://files.pythonhosted.org/packages/9a/0a/dbb3497e5b76687f54b8d7503b3f6499e830f7ef16753542575f133a1e5b/django-auth-pubtkt-1.1.2.win32.exe" }, { "comment_text": "", "digests": { "md5": "4f2b19b4ca88ae6be58ad375a843c7fc", "sha256": "06ad8f34e940cb5a23b176d6b5a9a21215ec47cb0b0405197c12b1570bb6d4d9" }, "downloads": -1, "filename": "django-auth-pubtkt-1.1.2.zip", "has_sig": false, "md5_digest": "4f2b19b4ca88ae6be58ad375a843c7fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12806, "upload_time": "2014-02-02T02:40:14", "url": "https://files.pythonhosted.org/packages/b7/37/e8959a4f66588af30c80c27c3e389c2cb84449b1746d83df3d17378f66a2/django-auth-pubtkt-1.1.2.zip" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "7099357abcc2554f79e041669ded6070", "sha256": "8d4f69f458f1d62d51c9620a90e411fa524930602aaf2f1a16af1b2b5eb27d7b" }, "downloads": -1, "filename": "django_auth_pubtkt-2.0.0-py2.7.egg", "has_sig": false, "md5_digest": "7099357abcc2554f79e041669ded6070", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 18986, "upload_time": "2018-03-10T19:50:51", "url": "https://files.pythonhosted.org/packages/4f/a1/3de182f95a807f3e69f16c22b75de15fe1970f0604821cb1262068127e5c/django_auth_pubtkt-2.0.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "d4e8dd245d6be139f423f3ccdd586c60", "sha256": "376a538cd1d6c6e0c0a73b4d7629a9da0dd9fb2d2b5ecd80f5919fc0799b8de2" }, "downloads": -1, "filename": "django-auth-pubtkt-2.0.0.tar.gz", "has_sig": false, "md5_digest": "d4e8dd245d6be139f423f3ccdd586c60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6958, "upload_time": "2018-03-10T19:50:50", "url": "https://files.pythonhosted.org/packages/60/19/de0c0a1b21ee3ffc8255b96312de815873d63b5ebf8cb5178d738effcc8a/django-auth-pubtkt-2.0.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "290c328a95ace4f2a0680feeb1e6bf4f", "sha256": "39232726a4ec50a2764a4cebda38275a2f7c76e9d8d282ba5209ac04fe17278e" }, "downloads": -1, "filename": "django-auth-pubtkt-2.0.0.win-amd64.exe", "has_sig": false, "md5_digest": "290c328a95ace4f2a0680feeb1e6bf4f", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 238967, "upload_time": "2018-03-10T19:50:53", "url": "https://files.pythonhosted.org/packages/3a/01/a615915d9e65dad50658f41a64432ce171161fed6ac47130de62fe745aeb/django-auth-pubtkt-2.0.0.win-amd64.exe" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "a8462a85204f8847c62fb1f6c54d377c", "sha256": "65dcfbc109b1ec95735d31f92598d7c82abe8afbec7de6228167af3fc8cd874b" }, "downloads": -1, "filename": "django_auth_pubtkt-2.0.1-py2.7.egg", "has_sig": false, "md5_digest": "a8462a85204f8847c62fb1f6c54d377c", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 19018, "upload_time": "2018-03-10T20:35:47", "url": "https://files.pythonhosted.org/packages/ed/ec/c81fa3dfe074bb8df778c09dc0eedfbeddc382276a0eec3bd2a227c1a8a1/django_auth_pubtkt-2.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "de4f9cd1710358c8a533d551318f7c4b", "sha256": "2dcab9af2f097bd8c37b6ad0c2ff044378fc860a33835c7e40f1c065eed6a614" }, "downloads": -1, "filename": "django-auth-pubtkt-2.0.1.tar.gz", "has_sig": false, "md5_digest": "de4f9cd1710358c8a533d551318f7c4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7679, "upload_time": "2018-03-10T20:35:45", "url": "https://files.pythonhosted.org/packages/18/87/b1ef97a4c8d1d79003cccab2e796ffd51d65fbe02700b72b5f5b5679f000/django-auth-pubtkt-2.0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "06630839c5ebb1b1e1836721c0b2aef6", "sha256": "61690269b306e26bda27ae8f101963b18eb84af073fc3e63f6e4fea0a54b71f6" }, "downloads": -1, "filename": "django-auth-pubtkt-2.0.1.win-amd64.exe", "has_sig": false, "md5_digest": "06630839c5ebb1b1e1836721c0b2aef6", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 238999, "upload_time": "2018-03-10T20:35:48", "url": "https://files.pythonhosted.org/packages/2a/16/e8ed8cfb4214934b2c03dbb4d57ba2f1d6e7ed19138253395a96436bd6bd/django-auth-pubtkt-2.0.1.win-amd64.exe" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a8462a85204f8847c62fb1f6c54d377c", "sha256": "65dcfbc109b1ec95735d31f92598d7c82abe8afbec7de6228167af3fc8cd874b" }, "downloads": -1, "filename": "django_auth_pubtkt-2.0.1-py2.7.egg", "has_sig": false, "md5_digest": "a8462a85204f8847c62fb1f6c54d377c", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 19018, "upload_time": "2018-03-10T20:35:47", "url": "https://files.pythonhosted.org/packages/ed/ec/c81fa3dfe074bb8df778c09dc0eedfbeddc382276a0eec3bd2a227c1a8a1/django_auth_pubtkt-2.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "de4f9cd1710358c8a533d551318f7c4b", "sha256": "2dcab9af2f097bd8c37b6ad0c2ff044378fc860a33835c7e40f1c065eed6a614" }, "downloads": -1, "filename": "django-auth-pubtkt-2.0.1.tar.gz", "has_sig": false, "md5_digest": "de4f9cd1710358c8a533d551318f7c4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7679, "upload_time": "2018-03-10T20:35:45", "url": "https://files.pythonhosted.org/packages/18/87/b1ef97a4c8d1d79003cccab2e796ffd51d65fbe02700b72b5f5b5679f000/django-auth-pubtkt-2.0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "06630839c5ebb1b1e1836721c0b2aef6", "sha256": "61690269b306e26bda27ae8f101963b18eb84af073fc3e63f6e4fea0a54b71f6" }, "downloads": -1, "filename": "django-auth-pubtkt-2.0.1.win-amd64.exe", "has_sig": false, "md5_digest": "06630839c5ebb1b1e1836721c0b2aef6", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 238999, "upload_time": "2018-03-10T20:35:48", "url": "https://files.pythonhosted.org/packages/2a/16/e8ed8cfb4214934b2c03dbb4d57ba2f1d6e7ed19138253395a96436bd6bd/django-auth-pubtkt-2.0.1.win-amd64.exe" } ] }