{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware" ], "description": "who_dev\n========\n\nTesting Authenticataion for repoze.who v2 WSGI Applications\n\nThis plugin is intented for quickly configuring test users for\ndevelopment purposes. Its use is not recommended in production systems.\n\n\nInstalling\n----------\n\n::\n\n pip install who_dev\n\n\nInstalling the mainline development branch\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe plugin is hosted in `a git branch hosted at github.com\n`_. To get the latest source\ncode, run::\n\n git clone git@github.com:m-martinez/who_dev.git\n\nThen run the command below::\n\n pip install -e who_dev/\n\n\nConfiguring ``repoze.who`` in a INI file\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou can configure your ``repoze.who`` based authentication via a ``*.ini`` file,\nand then load such settings in your application.\n\nSay we have a file called ``who.ini`` with the following contents::\n\n [general]\n request_classifier = repoze.who.classifiers:default_request_classifier\n challenge_decider = repoze.who.classifiers:default_challenge_decider\n\n [identifiers]\n plugins =\n auth_tkt\n\n [authenticators]\n plugins =\n auth_tkt\n dev_auth\n\n [challengers]\n plugins =\n form;browser\n\n [mdproviders]\n plugins =\n dev_properties\n dev_groups\n\n [plugin:form]\n use = repoze.who.plugins.form:make_plugin\n rememberer_name = auth_tkt\n\n [plugin:auth_tkt]\n use = repoze.who.plugins.auth_tkt:make_plugin\n secret = s3kr1t\n\n [plugin:dev_auth]\n use = who_dev:JSONAuthenticatorPlugin\n data = {\n \"someuser\": {\n \"password\": \"abc123\",\n \"properties\": {\n \"first_name\": \"Some\",\n \"last_name\": \"User\",\n \"email\": \"someuser@localhost\"\n },\n \"groups\": [\"members\", \"editors\"]\n }\n }\n\n [plugin:dev_properties]\n use = who_dev:JSONPropertiesPlugin\n source_key = properties\n\n [plugin:dev_groups]\n use = who_dev:JSONPropertiesPlugin\n source_key = groups\n\n\nFramework-specific documentation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou may want to check the following framework-specific documents to learn tips\non how to implement `repoze.who` in the framework you are using:\n\n * **Pyramid**: `pyramid_who\n `_.\n * **Pylons**: `Authentication and Authorization with repoze.who\n `_.\n * **TurboGears 2**: `Authentication and Authorization in TurboGears 2\n `_\n (``repoze.who`` is the default authentication library).\n\n\nConfiguration\n-------------\n\nJSONAuthenticatorPlugin\n~~~~~~~~~~~~~~~~~~~~~~~\n\nThis plugin uses a JSON object as a database, where each key in the object is\nthe userid and the value is another object with specific details about the user, which\ncan then be used along ith ``JSONPropertiesPlugin`` to retrieve specific details about\nthe user.\n\nEach record for a user must at a minimum contain a ``password`` entry so that\nthe user can authenticate, for example:\n\n::\n\n data={\n \"someuser\": {\"password\": \"abc123\"},\n \"otheruser\": {\"password\": \"xyz789\"}\n }\n\n\n==================== ======= ========================================================\nSetting Default Description\n==================== ======= ========================================================\n``data`` **Required** A JSON object contaiing records for each\n test userid.\n==================== ======= ========================================================\n\n\nJSONPropertiesPlugin\n~~~~~~~~~~~~~~~~~~~~\n\nThis plugin uses the specific key in the authenticator data to lookup\nspecific details about a user.\n\n=================== =============== =======================================================\nSetting Default Description\n=================== =============== =======================================================\n``source_key`` **Required** Sets the remote user data to the value\n located at ``source_key`` for the currently\n authenticated userid.\n=================== =============== =======================================================\n\n\nChangelog\n=========\n\n0.0.2 (2016-06-22)\n------------------\n\n* Converted to actual module so setup.py packages correctly\n\n\n0.0.1 (2015-10-19)\n------------------\n\n* The initial release.", "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/m-martinez/who_dev", "keywords": "web application server wsgi repoze repoze.who", "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", "maintainer": null, "maintainer_email": null, "name": "who_dev", "package_url": "https://pypi.org/project/who_dev/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/who_dev/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/m-martinez/who_dev" }, "release_url": "https://pypi.org/project/who_dev/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "A developer-mode plugin for repoze.who", "version": "0.0.2" }, "last_serial": 2182249, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "14a6c2f010b7864e0cbfb8634b85cfd6", "sha256": "9b0f1a40224e1c49e44f380cbbdb48e05674fb9e1baff086681e57b455fd6c99" }, "downloads": -1, "filename": "who_dev-0.0.1.tar.gz", "has_sig": false, "md5_digest": "14a6c2f010b7864e0cbfb8634b85cfd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4754, "upload_time": "2015-12-30T01:43:48", "url": "https://files.pythonhosted.org/packages/d5/62/a321d47bb94c30e3e805fa948e15d7f13e9cec20ef879258295d36e5153a/who_dev-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8250c119589dc33b91e019b6e010bc25", "sha256": "25f9ebcad1cf272cefdfeeb745a234fe38868bde4c9204ad57401e41eb99265d" }, "downloads": -1, "filename": "who_dev-0.0.2.tar.gz", "has_sig": false, "md5_digest": "8250c119589dc33b91e019b6e010bc25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5187, "upload_time": "2016-06-22T22:22:51", "url": "https://files.pythonhosted.org/packages/c1/5f/57791589b94364e740d0928f7322f93170458e9a8469b13f81345bad3593/who_dev-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8250c119589dc33b91e019b6e010bc25", "sha256": "25f9ebcad1cf272cefdfeeb745a234fe38868bde4c9204ad57401e41eb99265d" }, "downloads": -1, "filename": "who_dev-0.0.2.tar.gz", "has_sig": false, "md5_digest": "8250c119589dc33b91e019b6e010bc25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5187, "upload_time": "2016-06-22T22:22:51", "url": "https://files.pythonhosted.org/packages/c1/5f/57791589b94364e740d0928f7322f93170458e9a8469b13f81345bad3593/who_dev-0.0.2.tar.gz" } ] }