{ "info": { "author": "Seantis GmbH", "author_email": "info@seantis.ch", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Usage\n-----\n\n.. code-block:: python\n\n import morepath\n from more.itsdangerous import IdentityPolicy\n\n class App(morepath.App):\n pass\n\n @App.identity_policy()\n def get_identity_policy():\n return IdentityPolicy()\n\n @App.verify_identity()\n def verify_identity(identity):\n # trust the identity established by the identity policy (we could keep\n # checking if the user is really in the database here - or if it was\n # removed in the meantime)\n return True\n\nSee ``_ to learn more\nabout Morepath's security model and and have\na look at the commented source code:\n\n``_\n\nThe IdentityPolicy class is meant to be extended because everyone has differing\nneeds. It simply provides a way to store the identity as a signed cookie, using\nitsdangerous.\n\nUsage in Development\n--------------------\n\nBy default, the cookies created by more.itsdangerous are\n`HttpOnly `_ and\n`Secure `_.\n\nIf you have differing needs or if you are running a development server you\nmight have to change the identity policy's configuration:\n\n.. code-block:: python\n\n @App.identity_policy()\n def get_identity_policy():\n # make the cookies work under http, not just https\n return IdentityPolicy(secure=False)\n\nNote that this should only be used in development. In this day and age you do\nnot want to transmit cookies over http!\n\nRun the Tests\n-------------\n\nInstall tox and run it::\n\n pip install tox\n tox\n\nLimit the tests to a specific python version::\n\n tox -e py27\n\nConventions\n-----------\n\nMore Itsdangerous follows PEP8 as close as possible. To test for it run::\n\n tox -e pep8\n\nMore Itsdangerous uses `Semantic Versioning `_\n\nBuild Status\n------------\n\n.. image:: https://travis-ci.org/morepath/more.itsdangerous.png\n :target: https://travis-ci.org/morepath/more.itsdangerous\n :alt: Build Status\n\nCoverage\n--------\n\n.. image:: https://coveralls.io/repos/morepath/more.itsdangerous/badge.png?branch=master\n :target: https://coveralls.io/r/morepath/more.itsdangerous?branch=master\n :alt: Project Coverage\n\nLatests PyPI Release\n--------------------\n.. image:: https://pypip.in/v/more.itsdangerous/badge.png\n :target: https://crate.io/packages/more.itsdangerous\n :alt: Latest PyPI Release\n\nLicense\n-------\nmore.itsdangerous is released under the revised BSD license\n\nChangelog\n---------\n\n0.0.2 (2016-04-18)\n~~~~~~~~~~~~~~~~~~~\n\n- Adds compatibility with Morepath 0.14+.\n [henri-hulski]\n\n0.0.1 (2015-04-29)\n~~~~~~~~~~~~~~~~~~~\n\n- Initial release\n [href]", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/morepath/more.itsdangerous", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "more.itsdangerous", "package_url": "https://pypi.org/project/more.itsdangerous/", "platform": "any", "project_url": "https://pypi.org/project/more.itsdangerous/", "project_urls": { "Homepage": "http://github.com/morepath/more.itsdangerous" }, "release_url": "https://pypi.org/project/more.itsdangerous/0.0.2/", "requires_dist": [ "itsdangerous", "morepath", "coverage; extra == 'test'", "pytest; extra == 'test'" ], "requires_python": "", "summary": "An identity policy for morepath using itsdangerous.", "version": "0.0.2" }, "last_serial": 2069386, "releases": { "0.0.0": [], "0.0.1": [ { "comment_text": "", "digests": { "md5": "0cfbb9cd5bd53b44013503cfb85031ad", "sha256": "e47b4cc442d2f0a3471f22e4918c6ca33ddb8bfed20055006347db72aadb65e9" }, "downloads": -1, "filename": "more.itsdangerous-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "0cfbb9cd5bd53b44013503cfb85031ad", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8701, "upload_time": "2015-04-29T13:47:21", "url": "https://files.pythonhosted.org/packages/2e/84/f6b0f5512c547c59cdaacf474d664cd2bbb87bd63771abb0dfe3b5e1b25d/more.itsdangerous-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e465d0bc97f03e9d049d77f48fd4e19b", "sha256": "4b7ae016f9723dcd69b8eb29e401afdfbc0deb02ae96375d54790dc74e22a5e0" }, "downloads": -1, "filename": "more.itsdangerous-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e465d0bc97f03e9d049d77f48fd4e19b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5546, "upload_time": "2015-04-29T13:47:18", "url": "https://files.pythonhosted.org/packages/5c/3c/cbca2910e0bde7c89e6ba4b1fcdac573b28f095e92f7535c0a355b862fdb/more.itsdangerous-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d9f17ed04d43f6499909e4acdf2fe9db", "sha256": "711867e2e480cce7c1cf8a4053a295a005f7c8ed6f58cf0957ed2caf3fbf28d1" }, "downloads": -1, "filename": "more.itsdangerous-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "d9f17ed04d43f6499909e4acdf2fe9db", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8771, "upload_time": "2016-04-18T12:22:34", "url": "https://files.pythonhosted.org/packages/fa/d2/36db86cdd047a31d85b84b4b73ca488be3c220b60d7d870437856f875a88/more.itsdangerous-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c8529697379cfb247b13d556980bc6f", "sha256": "c0352ec418cb5f356261d88c600c18f7d7627895d357fe2f933fe643e42ba0f2" }, "downloads": -1, "filename": "more.itsdangerous-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7c8529697379cfb247b13d556980bc6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5589, "upload_time": "2016-04-18T12:22:50", "url": "https://files.pythonhosted.org/packages/56/22/a423e8d148b628cf62f8bc8ec63ffdbda62258783e68c743c987321e68f0/more.itsdangerous-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d9f17ed04d43f6499909e4acdf2fe9db", "sha256": "711867e2e480cce7c1cf8a4053a295a005f7c8ed6f58cf0957ed2caf3fbf28d1" }, "downloads": -1, "filename": "more.itsdangerous-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "d9f17ed04d43f6499909e4acdf2fe9db", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8771, "upload_time": "2016-04-18T12:22:34", "url": "https://files.pythonhosted.org/packages/fa/d2/36db86cdd047a31d85b84b4b73ca488be3c220b60d7d870437856f875a88/more.itsdangerous-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c8529697379cfb247b13d556980bc6f", "sha256": "c0352ec418cb5f356261d88c600c18f7d7627895d357fe2f933fe643e42ba0f2" }, "downloads": -1, "filename": "more.itsdangerous-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7c8529697379cfb247b13d556980bc6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5589, "upload_time": "2016-04-18T12:22:50", "url": "https://files.pythonhosted.org/packages/56/22/a423e8d148b628cf62f8bc8ec63ffdbda62258783e68c743c987321e68f0/more.itsdangerous-0.0.2.tar.gz" } ] }