{ "info": { "author": "Ian Wright", "author_email": "tech@wrighting.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3" ], "description": "##Running as a test\nAhead of running the test script you will need support for python virtualenv and pip\n\n> sudo apt-get install python-pip\n> sudo pip install virtualenv\n\n##Running as part of a WSGI Application under Apache\n\n> apt-get install libapache2-mod-wsgi\n\nYou will need to set up the virtualenv, see the test/run.sh script if you are unsure how to do this.\n\nIn your Apache configuration file:\n\n```\n WSGIApplicationGroup %{GLOBAL}\n WSGIScriptReloading On\n\n WSGIDaemonProcess MyApp processes=2 threads=25 python-path=/path/to/virtualenv/lib/python2.7/site-packages\n\n Alias /MyApp/ \"/path/to/MyApp/\"\n \n WSGIProcessGroup MyApp\n Options Indexes FollowSymLinks MultiViews ExecCGI\n MultiviewsMatch Handlers\n AddHandler wsgi-script .wsgi .py\n AddHandler cgi-script .cgi .pl\n AllowOverride All\n \n```\n\nCopy the files from wsgi_app to /path/to/MyApp\n\nYour URL will then be of the form /MyApp/app.wsgi/\n\nThis example allows for static HTML files to be placed in the directory /static - you can, of course, change this\n\n##Options\n\n###cas_root_url\n\nThis is url of your CAS server - typically https://yourdomain.com/cas\n\n/login, /logout etc are appended to this url\n\n###effective_url\n\nIf the application is behind a proxy server then, if the context is different frm the application server, then this parameter should be set as the proxy server context \n\n###logout_url\n\nThis url will be intercepted by the middleware to log you out of the application, and CAS\n\nThis will clear the local session and forward the request to the CAS logout page\n\n###logout_dest\n\nWhere to go after you have logged out\n\n###protocol_version\n\nOnly CAS version 2 and 3 are supported\n\n###casfailed_url\n\nA page to go to if authentication fails, if not set a simple message is displayed\n\n###entry_page\n\nIt is necessary to define the entry page for single log out to work\n\nCAS will post a message to this URL, which must be the same as the originally validated page, when a log out is performed on the CAS server.\n\n###session_store\n\nWerkzeug sessions are used and it's necessary to define a store to keep them in\n\n###ignore_redirect\n\nSometimes when you are not authenticated you don't want to redirect to CAS, this regex defines these URLs\n\n###ignored_callback\n\nA function defining what to do when the ignore_redirect regex matches\n\n###gateway_redirect\n\nDefault = None, A regular expression for pages that use a CAS gateway i.e. test if logged in but never show the log in page\n\n###group_separator\n\nDefault = ';', How to separate the groups returned from CAS as part of attribute release\n\n###group_environ\n\nDefault = 'HTTP_CAS_MEMBEROF', The name of the environment variable containing the groups\n\n###cas_private_key (CAS 4.1)\n\nDefault = None, The name of a file containing the private key used for decrypting the credentials attribute when using clearpass. This will be available in the PASSWORD environment variable. The value is held in the session using encryption keys held only in memory.\n\n###ssl_service\n\nDefault = False, Ensures https when validating the ticket", "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/wrighting/cas_wsgi_middleware", "keywords": "cas wsgi python", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "CASWSGIMiddleware", "package_url": "https://pypi.org/project/CASWSGIMiddleware/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/CASWSGIMiddleware/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wrighting/cas_wsgi_middleware" }, "release_url": "https://pypi.org/project/CASWSGIMiddleware/1.2.1/", "requires_dist": null, "requires_python": null, "summary": "A WSGI middleware module to enable CAS authentication", "version": "1.2.1" }, "last_serial": 2759819, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1f48a02cc873c0f0c0178fa10890e0d6", "sha256": "41a113384846a1d4f4623ff84341097ef6186e31cfe23bce31539e69e86b2c80" }, "downloads": -1, "filename": "CASWSGIMiddleware-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1f48a02cc873c0f0c0178fa10890e0d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7405, "upload_time": "2015-09-16T10:25:30", "url": "https://files.pythonhosted.org/packages/08/dd/90c780e13bfc5c7253e0a9b28b7099083ad2d9ab47e119f71bd169366555/CASWSGIMiddleware-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "549662814f89a085a7984e093428baf6", "sha256": "cce081d178902f6e6f844b5579c0399202d176fdcffc06fe7364f9b1d2c7757f" }, "downloads": -1, "filename": "CASWSGIMiddleware-1.1.0.tar.gz", "has_sig": false, "md5_digest": "549662814f89a085a7984e093428baf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8832, "upload_time": "2015-10-14T07:43:15", "url": "https://files.pythonhosted.org/packages/e1/e2/e5dbfbf6cc62b001f99e5cdfe501a3ef1a672f497b1030acca93aac4d947/CASWSGIMiddleware-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "afd57361b22d47ea251180efebaa736f", "sha256": "1d0b9de3ba20f9b567aeb17eacbdbc8d05d1263d0dbba105047c8f97aeee5582" }, "downloads": -1, "filename": "CASWSGIMiddleware-1.1.1.tar.gz", "has_sig": false, "md5_digest": "afd57361b22d47ea251180efebaa736f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8565, "upload_time": "2017-04-07T09:52:52", "url": "https://files.pythonhosted.org/packages/da/68/ff3b7e4cfe0e2d7c29bc4ad90d2b39683618ed9ff976a715db4cf1a5b0f7/CASWSGIMiddleware-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "2691851906b2f0c864f3893ed4885b68", "sha256": "ce2649e5fbff9567f29d607baf8a8a2fafeb5deb3d6676d9fed34f71aab748d2" }, "downloads": -1, "filename": "CASWSGIMiddleware-1.2.0.tar.gz", "has_sig": false, "md5_digest": "2691851906b2f0c864f3893ed4885b68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8822, "upload_time": "2015-10-15T12:30:10", "url": "https://files.pythonhosted.org/packages/19/9b/d758ab7272f09ffc81ed1ef6262b094e69d9e18871b4e2f8857c38062ca4/CASWSGIMiddleware-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "bb399259a45c75735671bba060bedc0c", "sha256": "24d282019ffd50363056bb27deb83ea93b4848f86779600d5b603dfd1a610ae8" }, "downloads": -1, "filename": "CASWSGIMiddleware-1.2.1.tar.gz", "has_sig": false, "md5_digest": "bb399259a45c75735671bba060bedc0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8610, "upload_time": "2017-04-07T10:00:55", "url": "https://files.pythonhosted.org/packages/bb/7c/b70ac462f94001352bf0681ed01658d390e3a9819642b2170e3c305f7fe9/CASWSGIMiddleware-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb399259a45c75735671bba060bedc0c", "sha256": "24d282019ffd50363056bb27deb83ea93b4848f86779600d5b603dfd1a610ae8" }, "downloads": -1, "filename": "CASWSGIMiddleware-1.2.1.tar.gz", "has_sig": false, "md5_digest": "bb399259a45c75735671bba060bedc0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8610, "upload_time": "2017-04-07T10:00:55", "url": "https://files.pythonhosted.org/packages/bb/7c/b70ac462f94001352bf0681ed01658d390e3a9819642b2170e3c305f7fe9/CASWSGIMiddleware-1.2.1.tar.gz" } ] }