{ "info": { "author": "CusDeb Team", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "|pypi|\n\nDjango Shirow\n=============\n\nTo connect to the RPC servers based on\n`Shirow `__, clients have to be\nauthenticated using the `Django authentication\nsystem `__. Thus,\nthe package provides the ``create_token_if_needed`` decorator which is\nintended for Django views. First, the decorator tries to obtain a token\nfrom Redis. Then, in case the try doesn't succeed,\n``create_token_if_needed`` will create and put it into Redis and the\nuser's session. Finally, the client can get the token from the session\nand prove the RPC server he/she is an authenticated user.\n\nThe decorator uses JWT for generating tokens. JWT (JSON Web Token) is\nthe open standard defined in `RFC\n7519 `__.\n\nInstallation\n------------\n\n::\n\n $ pip install django-shirow\n\nUsage\n-----\n\nThis Django application uses the following configuration keys:\n\n- ``SECRET_KEY`` is a string which contains a secret. Django uses the\n configuration key for `cryptographic\n signing `__,\n but ``create_token_if_needed`` uses it for signing the tokens, using\n the algorithm specified by ``TOKEN_ALGORITHM_ENCODING`` (see below).\n- ``TOKEN_TTL`` is a number which contains a time-in-seconds value. It\n indicates how long tokens are considered valid. If ``TOKEN_TTL`` is\n not set, then TTL is set to ``900`` (15 minutes).\n- ``TOKEN_ALGORITHM_ENCODING`` is a string which contains `one of the\n algorithms `__\n used for signing tokens. If ``TOKEN_ALGORITHM_ENCODING`` is not set,\n then the algorithm is set to ``HS256``.\n- ``REDIS_HOST`` is a string which contains the Redis host. If\n ``REDIS_HOST`` is not set, then the host is set to ``127.0.0.1``.\n- ``REDIS_PORT`` is a number which contains the port the Redis server\n listens on. If ``REDIS_PORT`` is not set, then the port is set to\n ``6379``.\n\n.. |pypi| image:: https://img.shields.io/pypi/v/django-shirow.svg\n :target: https://pypi.org/project/django-shirow/", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tolstoyevsky/shirow", "keywords": "", "license": "http://www.apache.org/licenses/LICENSE-2.0", "maintainer": "Evgeny Golyshev", "maintainer_email": "Evgeny Golyshev ", "name": "django-shirow", "package_url": "https://pypi.org/project/django-shirow/", "platform": "", "project_url": "https://pypi.org/project/django-shirow/", "project_urls": { "Homepage": "https://github.com/tolstoyevsky/shirow" }, "release_url": "https://pypi.org/project/django-shirow/0.4/", "requires_dist": null, "requires_python": "", "summary": "Django Shirow package", "version": "0.4" }, "last_serial": 4682858, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "a9bb4c955bc5e4c1b51f9ecf1c888b7d", "sha256": "b73a0a5c1f15935f1c86eca199a5dfddc73bc6f12d896dc12d2981df8aced93d" }, "downloads": -1, "filename": "django-shirow-0.3.tar.gz", "has_sig": false, "md5_digest": "a9bb4c955bc5e4c1b51f9ecf1c888b7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3074, "upload_time": "2018-02-22T18:11:55", "url": "https://files.pythonhosted.org/packages/34/f4/f4389d4498ef7a4e44698fa12abed1e80991028ef40b394ac1100d756a7f/django-shirow-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "27466f7bcfe1107604e15a4a9fa3a989", "sha256": "9d84e3bdbb959a437bb4dd027d1709573771239e4e7c5665478886c703040ebb" }, "downloads": -1, "filename": "django-shirow-0.4.tar.gz", "has_sig": false, "md5_digest": "27466f7bcfe1107604e15a4a9fa3a989", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3196, "upload_time": "2019-01-10T21:51:40", "url": "https://files.pythonhosted.org/packages/28/ae/6f3124119a4e951c38af137164d468c0452e921542b6d854a7a017bf0bff/django-shirow-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "27466f7bcfe1107604e15a4a9fa3a989", "sha256": "9d84e3bdbb959a437bb4dd027d1709573771239e4e7c5665478886c703040ebb" }, "downloads": -1, "filename": "django-shirow-0.4.tar.gz", "has_sig": false, "md5_digest": "27466f7bcfe1107604e15a4a9fa3a989", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3196, "upload_time": "2019-01-10T21:51:40", "url": "https://files.pythonhosted.org/packages/28/ae/6f3124119a4e951c38af137164d468c0452e921542b6d854a7a017bf0bff/django-shirow-0.4.tar.gz" } ] }