{ "info": { "author": "Alexander Dutton", "author_email": "www-authenticate-lib@alexdutton.co.uk", "bugtrack_url": null, "classifiers": [], "description": "WWW-Authenticate header parser\n==============================\n\nParsing WWW-Authenticate headers is difficult. Let this tiny library do all the\nhard work for you.\n\nWhat's so difficult?\n--------------------\n\nThe header contains a set of comma-separated challenges, but the parameters for\neach challenge are also comma-separated. Some challenges in the wild don't have\nparameters, which violates the spec. The ``Negotiate`` challenge eschews the\nrequired name-value pairs and has a single string as its parameter.\n\nSome servers may offer more challenges than you were expecting, but you'd still\nlike to notice the one you care about.\n\nUsage\n-----\n\nIt's really easy::\n\n import www_authenticate\n\n parsed = www_authenticate.parse(response.headers['WWW-Authenticate'])\n\n if 'Basic' in parsed:\n realm = parsed['Basic']['realm']\n if 'Negotiate' in parsed:\n challenge = parsed['Negotiate']\n\nThe returned object is a ``collections.OrderedDict`` with authentication scheme\nnames as keys. The values are either dictionaries, a single string, or ``None``\nif there are no parameters.\n\nInstallation\n------------\n\nThis package is in PyPI. Install with::\n\n $ pip install www-authenticate\n\nThere are no external dependencies.", "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/alexsdutton/www-authenticate", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "www-authenticate", "package_url": "https://pypi.org/project/www-authenticate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/www-authenticate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/alexsdutton/www-authenticate" }, "release_url": "https://pypi.org/project/www-authenticate/0.9.2/", "requires_dist": null, "requires_python": null, "summary": "Parser for WWW-Authenticate headers.", "version": "0.9.2" }, "last_serial": 1664990, "releases": { "0.9": [], "0.9.1": [ { "comment_text": "", "digests": { "md5": "bea9cf6eec62262f3a55426e65243ced", "sha256": "f36cff0c8e00f28364685f909042a19285e82823bdf1d8600909c1abc2f3da02" }, "downloads": -1, "filename": "www-authenticate-0.9.1.tar.gz", "has_sig": false, "md5_digest": "bea9cf6eec62262f3a55426e65243ced", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2392, "upload_time": "2015-07-12T12:42:57", "url": "https://files.pythonhosted.org/packages/8e/d7/8f9ec506e21b551cfee998ef5d8d73cb1c53830151eb4f014af837a530c2/www-authenticate-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "42557d5d1f8ea37996e666039207d902", "sha256": "cf75fc2ea5effb0f9342d7de7619b736f2a7d4b223331a53e296863a286e9dcb" }, "downloads": -1, "filename": "www-authenticate-0.9.2.tar.gz", "has_sig": false, "md5_digest": "42557d5d1f8ea37996e666039207d902", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2414, "upload_time": "2015-08-05T08:18:38", "url": "https://files.pythonhosted.org/packages/a7/2d/5567291a8274ef5d9b6495a1ec341394ab68933e2396936755b157f87b43/www-authenticate-0.9.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "42557d5d1f8ea37996e666039207d902", "sha256": "cf75fc2ea5effb0f9342d7de7619b736f2a7d4b223331a53e296863a286e9dcb" }, "downloads": -1, "filename": "www-authenticate-0.9.2.tar.gz", "has_sig": false, "md5_digest": "42557d5d1f8ea37996e666039207d902", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2414, "upload_time": "2015-08-05T08:18:38", "url": "https://files.pythonhosted.org/packages/a7/2d/5567291a8274ef5d9b6495a1ec341394ab68933e2396936755b157f87b43/www-authenticate-0.9.2.tar.gz" } ] }