{ "info": { "author": "David M y Oscar Garcia", "author_email": "d.martin@i2tic.com", "bugtrack_url": null, "classifiers": [], "description": "**JWTiTIC**\nThis library is a simple method for authentication in microservices using JWT\n\n**Requirements**\n\n------------\n\n* Python (2.7, 3.3, 3.4, 3.5, 3.6)\n* Django (1.8, 1.9, 1.10, 1.11)\n* Django REST Framework (3.1, 3.2, 3.3, 3.4, 3.5, 3.6)\n\n\n**Installation**\n\nYou need djangorestframework-jwt.\n
$ pip install djangorestframework-jwt\n\nInstall using pip.\n
$ pip install jwti2tic\n\nAdd 'jwtauth' to your INSTALLED_APPS setting.\n```\n INSTALLED_APPS = (\n ...\n 'jwtauth',\n )\n```\n Add 'DEFAULT_AUTHENTICATION_CLASSES' to your REST_FRAMEWORK settings.\n```\n REST_FRAMEWORK = {\n\n 'DEFAULT_AUTHENTICATION_CLASSES': (\n 'rest_framework.authentication.BasicAuthentication',\n 'jwtauth.drfjwtauth.JWTAuthentication'\n )\n }\n```\nAdd 'CUSTOM JWT_PAYLOAD_HANDLER' to your JWT_AUTH settings.\n```\n\nJWT_AUTH = {\n 'JWT_PAYLOAD_GET_USERNAME_HANDLER': 'jwtauth.utils.jwt_get_user_name_from_payload_handler',\n 'JWT_PAYLOAD_GET_USER_ID_HANDLER': 'jwtauth.utils.jwt_get_user_id_from_payload_handler',\n}\n```\n\n**Usage**\n\n* In your .views import these packages.\n```\nfrom rest_framework.authentication import BasicAuthentication, SessionAuthentication\nfrom rest_framework.permissions import IsAuthenticated\nfrom jwtauth.drfjwtauth import JWTAuthentication\n```\n\n* Inside your vieset class, add this settings.\n```\nauthentication_classes = (SessionAuthentication, BasicAuthentication, JWTAuthentication)\npermission_classes = (IsAuthenticated,)\n```\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.example.com/", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "jwt-i2tic", "package_url": "https://pypi.org/project/jwt-i2tic/", "platform": "", "project_url": "https://pypi.org/project/jwt-i2tic/", "project_urls": { "Homepage": "https://www.example.com/" }, "release_url": "https://pypi.org/project/jwt-i2tic/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Simple JWT.", "version": "0.2.1" }, "last_serial": 3695718, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "746762348bc9e25d3607d2aa06f1a3c4", "sha256": "db68419a157f48bea00d9eefe57497488afdd1fa22f9f7ae30dae5b9bde1c0d6" }, "downloads": -1, "filename": "jwt-i2tic-0.1.tar.gz", "has_sig": false, "md5_digest": "746762348bc9e25d3607d2aa06f1a3c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2373, "upload_time": "2018-03-21T19:07:30", "url": "https://files.pythonhosted.org/packages/42/f6/272e184eeb32f7d0a01a5d5cd4406a338b89e5fc8c65b4577c729610369d/jwt-i2tic-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6c443c5b2948b98976b1d0c942472c2e", "sha256": "a9a32840ad784b5eb0ecc9c311b7ea69688d32046e1b703c195477e518b496c3" }, "downloads": -1, "filename": "jwt-i2tic-0.2.tar.gz", "has_sig": false, "md5_digest": "6c443c5b2948b98976b1d0c942472c2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3087, "upload_time": "2018-03-22T12:58:43", "url": "https://files.pythonhosted.org/packages/bf/4d/1418874af51b407ba5672e15d00bd6e35851e933e5019f7479b3b6e90674/jwt-i2tic-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "60e4bf4d4d2318f85a00c48a61c17d1e", "sha256": "cdd46b71b8c4143d69ed9398d63003e165030d23d22ddf1910a013dc4b685b33" }, "downloads": -1, "filename": "jwt-i2tic-0.2.1.tar.gz", "has_sig": false, "md5_digest": "60e4bf4d4d2318f85a00c48a61c17d1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3086, "upload_time": "2018-03-22T15:06:18", "url": "https://files.pythonhosted.org/packages/6c/64/2a8dc4c3b79c41d30d4fc2b357e90f892ab344343d85e2a911872054e128/jwt-i2tic-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "60e4bf4d4d2318f85a00c48a61c17d1e", "sha256": "cdd46b71b8c4143d69ed9398d63003e165030d23d22ddf1910a013dc4b685b33" }, "downloads": -1, "filename": "jwt-i2tic-0.2.1.tar.gz", "has_sig": false, "md5_digest": "60e4bf4d4d2318f85a00c48a61c17d1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3086, "upload_time": "2018-03-22T15:06:18", "url": "https://files.pythonhosted.org/packages/6c/64/2a8dc4c3b79c41d30d4fc2b357e90f892ab344343d85e2a911872054e128/jwt-i2tic-0.2.1.tar.gz" } ] }