{ "info": { "author": "di-dip-unistra", "author_email": "di-dip@unistra.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities" ], "description": "# django-cas-sso\n\n[![Code Health](https://landscape.io/github/unistra/django-cas/master/landscape.svg?style=flat)](https://landscape.io/github/unistra/django-cas/master)\n \nCAS client for Django. This is K-State's fork of the original, which lives at\nhttps://bitbucket.org/cpcc/django-cas/overview. This fork is actively maintaned and \nincludes several new features.\n\nCurrent version: 0.8.5\n\nhttps://github.com/kstateome/django-cas\n\n\n## Install\n\n\nSee the document at Bitbucket\n\nhttps://bitbucket.org/cpcc/django-cas/overview\n\n## Settings.py for CAS\n\nAdd the following to middleware if you want to use CAS::\n \n MIDDLEWARE_CLASSES = (\n 'django_cas.middleware.CASMiddleware',\n )\n \n\nAdd these to ``settings.py`` to use the CAS Backend::\n\n\n CAS_SERVER_URL = \"Your Cas Server\"\n CAS_LOGOUT_COMPLETELY = True\n\nTo disable CAS authentication for the entire django admin app, you should use the ``CAS_ADMIN_AUTH`` parameter::\n\n CAS_ADMIN_AUTH = False\n\n## Url namespace\n\nInclude `django_cas` urls :\n\n* if your django version is 1.8 or older (defining the namespace \"django_cas\" is required) :\n\n\t\turl(r'your-base_uri/', include('django_cas.urls', namespace='django_cas'))\n\n* for version >= 1.9 (a default namespace \"django_cas\" will be set but you can set yours if you want) :\n\n\t\turl(r'your-base_uri/', include('django_cas.urls'))\n\n\n# Additional Features\n\nThis fork contains additional features not found in the original:\n* Proxied Hosts\n* CAS Response Callbacks\n* CAS Gateway\n* Proxy Tickets (From Edmund Crewe) \n\n## Proxied Hosts\n\nYou will need to setup middleware to handle the use of proxies.\n\nAdd a setting ``PROXY_DOMAIN`` of the domain you want the client to use. Then add\n\n MIDDLEWARE_CLASSES = (\n 'django_cas.middleware.ProxyMiddleware',\n )\n\nThis middleware needs to be added before the django ``common`` middleware.\n\n\n## CAS Response Callbacks\n\nTo store data from CAS, create a callback function that accepts the ElementTree object from the\nproxyValidate response. There can be multiple callbacks, and they can live anywhere. Define the \ncallback(s) in ``settings.py``:\n\n CAS_RESPONSE_CALLBACKS = (\n 'path.to.module.callbackfunction',\n 'anotherpath.to.module.callbackfunction2',\n )\n\nand create the functions in ``path/to/module.py``:\n\n def callbackfunction(tree):\n username = tree[0][0].text\n\n user, user_created = User.objects.get_or_create(username=username)\n profile, created = user.get_profile()\n\n profile.email = tree[0][1].text\n profile.position = tree[0][2].text\n profile.save()\n \n\n## CAS Gateway\n\nTo use the CAS Gateway feature, first enable it in settings. Trying to use it without explicitly\nenabling this setting will raise an ImproperlyConfigured:\n\n CAS_GATEWAY = True\n\nThen, add the ``gateway`` decorator to a view:\n\n from django_cas.decorators import gateway\n\n @gateway()\n def foo(request):\n #stuff\n return render(request, 'foo/bar.html')\n\n\n## Custom Forbidden Page\n\nTo show a custom forbidden page, set ``CAS_CUSTOM_FORBIDDEN`` to a ``path.to.some_view``. Otherwise,\na generic ``HttpResponseForbidden`` will be returned.\n\n\n## Proxy Tickets\n\nThis fork also includes Edmund Crewe's proxy ticket patch:\nhttp://code.google.com/r/edmundcrewe-proxypatch/source/browse/django-cas-proxy.patch\n", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/django-cas-sso", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/unistra/django-cas/", "keywords": "django", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-cas-sso", "package_url": "https://pypi.org/project/django-cas-sso/", "platform": "", "project_url": "https://pypi.org/project/django-cas-sso/", "project_urls": { "Download": "http://pypi.python.org/pypi/django-cas-sso", "Homepage": "http://github.com/unistra/django-cas/" }, "release_url": "https://pypi.org/project/django-cas-sso/1.1.7/", "requires_dist": null, "requires_python": "", "summary": "Django Cas SSO Client (inherited from django-cas)", "version": "1.1.7" }, "last_serial": 3540786, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "171046fda31376afea06596d053a9737", "sha256": "7014599f2da8dc611295ae2881a3aa133a2e4e7437bfe99709340a9411f2b888" }, "downloads": -1, "filename": "django-cas-sso-1.1.0.tar.gz", "has_sig": false, "md5_digest": "171046fda31376afea06596d053a9737", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9689, "upload_time": "2014-07-01T09:46:09", "url": "https://files.pythonhosted.org/packages/18/ad/c07be8937956b9596cca85f1a96ae2c3b267e7d8f531bee160bbfe54c4ec/django-cas-sso-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "48475c17d172a3819b7bcc7eab23b0de", "sha256": "cfee6d37ee5eab71d2d2ee190c7cd0b9ec0299babc9287fd86fbc7d7225a733a" }, "downloads": -1, "filename": "django-cas-sso-1.1.1.tar.gz", "has_sig": false, "md5_digest": "48475c17d172a3819b7bcc7eab23b0de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11231, "upload_time": "2014-12-12T18:05:31", "url": "https://files.pythonhosted.org/packages/30/c3/18f508ecfa41a511dfe22d34039ebb33a0048a531bcc5a7a17a7e0196a1c/django-cas-sso-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "8990873d991c60420b371984f1f2e0c1", "sha256": "00b9d000f28bfc899025db07df3ee5d83ea21226e8214ee9fd95e5317853a96d" }, "downloads": -1, "filename": "django-cas-sso-1.1.2.tar.gz", "has_sig": false, "md5_digest": "8990873d991c60420b371984f1f2e0c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11463, "upload_time": "2015-06-30T13:11:42", "url": "https://files.pythonhosted.org/packages/41/21/71165b0791f218427e09dd89d2da1de3a3d27ccfa26054f97fa40ada18ee/django-cas-sso-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "427d241bbd3676900fad38da98afeb7d", "sha256": "b4f4cd18347d87654360e49fe809d8f3c2712737a593b6265fc83fd8d0356589" }, "downloads": -1, "filename": "django-cas-sso-1.1.3.tar.gz", "has_sig": false, "md5_digest": "427d241bbd3676900fad38da98afeb7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11159, "upload_time": "2016-08-05T07:53:44", "url": "https://files.pythonhosted.org/packages/36/ea/84432c06ea6f6b3ba98787799de908ee4f51e0a29541f7aeae20908a787e/django-cas-sso-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "97847ca5687dca4dccb4b09afa9c29c6", "sha256": "b54e5c0287e1bfa886bbf47d2947fb6e9ae1b452a58f7ce723f63a39d68c2e48" }, "downloads": -1, "filename": "django_cas_sso-1.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "97847ca5687dca4dccb4b09afa9c29c6", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 22365, "upload_time": "2017-03-15T09:53:43", "url": "https://files.pythonhosted.org/packages/85/be/1c6b87de9c5de7c8eee8d2acf16ecec5c11e9200964297834450d639f798/django_cas_sso-1.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "238dec6cb77182eba852d83b482310a4", "sha256": "ba09d950cab91a58b495229351e9ee61b8448c3e7d1a873ec36d646e2c1d1706" }, "downloads": -1, "filename": "django-cas-sso-1.1.4.tar.gz", "has_sig": false, "md5_digest": "238dec6cb77182eba852d83b482310a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15038, "upload_time": "2017-03-15T09:53:41", "url": "https://files.pythonhosted.org/packages/ae/d0/5389c5b336b96de8aebb9a18df7843a743408e81ceee4299371ab8d58357/django-cas-sso-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "c1d400054f73d9f3dbe933114b5d14a7", "sha256": "55f8f4df3c2a16f60eb8546032531661887a027e84b32355c82762520cd02649" }, "downloads": -1, "filename": "django_cas_sso-1.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c1d400054f73d9f3dbe933114b5d14a7", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 23743, "upload_time": "2017-05-04T15:35:05", "url": "https://files.pythonhosted.org/packages/92/44/8bcaf41168d0cfaba88e4689ade6826e19c4726b3057e6e75369f7a0f837/django_cas_sso-1.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "11ee6d6ddf5c242cd6b88692e688adb8", "sha256": "b21acf4800b812cd90bc7133c0631d3701a76516eaa157b0a74a52d638f48f08" }, "downloads": -1, "filename": "django-cas-sso-1.1.5.tar.gz", "has_sig": false, "md5_digest": "11ee6d6ddf5c242cd6b88692e688adb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15605, "upload_time": "2017-05-04T15:35:04", "url": "https://files.pythonhosted.org/packages/97/b7/75e1afc4abd6a3f2f4ddeea50a47e793c24110ab6463285d882f17fb4bed/django-cas-sso-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "004b4954b944b2970e6c6383b01240f9", "sha256": "0ad905010d90954f042a2246009df3e23d8d6bcd27781c10b3c9c16711336e36" }, "downloads": -1, "filename": "django_cas_sso-1.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "004b4954b944b2970e6c6383b01240f9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 24629, "upload_time": "2017-07-20T07:07:01", "url": "https://files.pythonhosted.org/packages/20/db/01d3d5f433fb2e59d40fcecd8378091a38195788a18ef6639a070853b3be/django_cas_sso-1.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b5257f3c52a639845b53cef22bb0cc0", "sha256": "2823425496e5db379d184a389825239c96a655ca70719ad7a9f6f4e94a7f4224" }, "downloads": -1, "filename": "django-cas-sso-1.1.6.tar.gz", "has_sig": false, "md5_digest": "0b5257f3c52a639845b53cef22bb0cc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16182, "upload_time": "2017-07-20T07:06:59", "url": "https://files.pythonhosted.org/packages/46/87/76edaab861274d0a879aa2e93db5a1893f1c3ad0ff7e998270004111dbf5/django-cas-sso-1.1.6.tar.gz" } ], "1.1.7": [ { "comment_text": "", "digests": { "md5": "39d87c6599ea57fda609dd9c59b25275", "sha256": "9bd863c83bc5b2320cb711f31fb2a491bbff2732c0db04422c5f6a3b29a49908" }, "downloads": -1, "filename": "django-cas-sso-1.1.7.tar.gz", "has_sig": false, "md5_digest": "39d87c6599ea57fda609dd9c59b25275", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14182, "upload_time": "2018-02-01T08:23:21", "url": "https://files.pythonhosted.org/packages/1d/03/49f6f27a6cbb901f8771dc6502e5f606938457b84331c7b06ce042625a54/django-cas-sso-1.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39d87c6599ea57fda609dd9c59b25275", "sha256": "9bd863c83bc5b2320cb711f31fb2a491bbff2732c0db04422c5f6a3b29a49908" }, "downloads": -1, "filename": "django-cas-sso-1.1.7.tar.gz", "has_sig": false, "md5_digest": "39d87c6599ea57fda609dd9c59b25275", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14182, "upload_time": "2018-02-01T08:23:21", "url": "https://files.pythonhosted.org/packages/1d/03/49f6f27a6cbb901f8771dc6502e5f606938457b84331c7b06ce042625a54/django-cas-sso-1.1.7.tar.gz" } ] }