{ "info": { "author": "Michael Ottoson", "author_email": "michael@pointw.com", "bugtrack_url": null, "classifiers": [ "Environment :: No Input/Output (Daemon)", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", "Topic :: Security" ], "description": "# eve-negotiable-auth\nAn auth module for Eve. Allows for easy configuration and handling of multiple auth schemes - including schemes like Digest which require \"negotiation\".\n\n`NegotiableAuth` is an abstract base class. It uses the authparser library, which parses the `Authorization:` header and dispatches to handlers. As a result, there is only one function to override:\n\n`process_claims(claims, allowed_roles, resource, method)`\nThis is where you will use the passed to set up the Eve authorization context (e.g. calling `set_request_auth_value()`).\n- **claims** - a dict of name-value pairs containing the claims provided by the scheme handlers, derived from parsing the `Authorization:` header\n- **allowed_roles** - the user's allowed roles, passed through from BasicAuth\n- **resource** - the resource being requested\n- **method** - the HTTP verb of the request\n- Return True/False whether the user is authenticated.\n\nWhen NegotiableAuth calls AuthParser, it passes the following kwargs:\n`get_user_record()` - passed through to the scheme's `user_record_fn`\n- allowed_roles\n- resource\n- method\n- request\n\n`get_challenge_header()` - passed through to the scheme's `challenge_fn`\n- request\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pointw-dev/eve-negotiable-auth", "keywords": "eve,api,rest,auth,http", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "eve-negotiable-auth", "package_url": "https://pypi.org/project/eve-negotiable-auth/", "platform": "", "project_url": "https://pypi.org/project/eve-negotiable-auth/", "project_urls": { "Homepage": "https://github.com/pointw-dev/eve-negotiable-auth" }, "release_url": "https://pypi.org/project/eve-negotiable-auth/0.9.2/", "requires_dist": [ "eve (>=0.8.0)", "authparser (>=1.0)" ], "requires_python": "", "summary": "Eve Negotiable authentication", "version": "0.9.2" }, "last_serial": 4669007, "releases": { "0.9.2": [ { "comment_text": "", "digests": { "md5": "e8689697608e50b833ba84716056de7f", "sha256": "469b3ce8e91816d22d15c305f47d68962584b9ba5c292840afb777705051d3ff" }, "downloads": -1, "filename": "eve_negotiable_auth-0.9.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e8689697608e50b833ba84716056de7f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3957, "upload_time": "2019-01-07T15:18:55", "url": "https://files.pythonhosted.org/packages/1a/2e/6c374bb305e9a2a87f1654c41e16dd86c06bdd2cc5640916b8eab2d3bb5a/eve_negotiable_auth-0.9.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "60f6f9f112614a1ecdbd826058a6d9f5", "sha256": "73d65b31411215bb42b19280b51eeec84399e04d4fa8f4717cfc4a3ebc791b12" }, "downloads": -1, "filename": "eve-negotiable-auth-0.9.2.tar.gz", "has_sig": false, "md5_digest": "60f6f9f112614a1ecdbd826058a6d9f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2611, "upload_time": "2019-01-07T15:18:57", "url": "https://files.pythonhosted.org/packages/de/29/1c10bead4fc9b1302bff9a2dc03225e69015993643030d793e18a878e8a9/eve-negotiable-auth-0.9.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8689697608e50b833ba84716056de7f", "sha256": "469b3ce8e91816d22d15c305f47d68962584b9ba5c292840afb777705051d3ff" }, "downloads": -1, "filename": "eve_negotiable_auth-0.9.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e8689697608e50b833ba84716056de7f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3957, "upload_time": "2019-01-07T15:18:55", "url": "https://files.pythonhosted.org/packages/1a/2e/6c374bb305e9a2a87f1654c41e16dd86c06bdd2cc5640916b8eab2d3bb5a/eve_negotiable_auth-0.9.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "60f6f9f112614a1ecdbd826058a6d9f5", "sha256": "73d65b31411215bb42b19280b51eeec84399e04d4fa8f4717cfc4a3ebc791b12" }, "downloads": -1, "filename": "eve-negotiable-auth-0.9.2.tar.gz", "has_sig": false, "md5_digest": "60f6f9f112614a1ecdbd826058a6d9f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2611, "upload_time": "2019-01-07T15:18:57", "url": "https://files.pythonhosted.org/packages/de/29/1c10bead4fc9b1302bff9a2dc03225e69015993643030d793e18a878e8a9/eve-negotiable-auth-0.9.2.tar.gz" } ] }