{ "info": { "author": "hoatle", "author_email": "hoatle@teracy.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Utilities" ], "description": "httpie-jwt-auth |travis build status|_ |coveralls status|_ |codeclimate status|_ |pypi status|_\n===============================================================================================\n\n`JWTAuth (JSON Web Tokens) `_ auth plugin for\n`HTTPie `_.\n\n\nInstallation\n------------\n\n- Latest stable version:\n\n.. code-block:: bash\n\n $ pip install -U httpie-jwt-auth\n\n- Latest developing version:\n\n.. code-block:: bash\n\n $ pip install -U https://github.com/teracyhq/httpie-jwt-auth/archive/develop.zip\n\n- This version requires HTTPie v0.9.7 and above. If you can not use this new version, you can use:\n https://github.com/teracyhq/httpie-jwt-auth/tree/v0.2.1\n\n\nDocker Image\n------------\n\n- It's recommended that you should use our built Docker image, see:\n https://github.com/teracyhq/docker-files/tree/master/httpie-jwt-auth\n\n- To try out our latest development Docker image, use this Docker image:\n ``teracy/httpie-jwt-auth:py27_httpie_latest-alpine_develop``\n\nUsage\n-----\n\n- Normal:\n\n .. code-block:: bash\n\n $ http --auth-type=jwt --auth=\"\" example.org -h\n\n GET / HTTP/1.1\n Accept: */*\n Accept-Encoding: gzip, deflate\n Authorization: Token_Prefix abc\n Connection: keep-alive\n Host: example.org\n User-Agent: HTTPie/0.9.7\n\n- By default, the ``Bearer`` prefix auth token is used, you can choose another prefix:\n\n .. code-block:: bash\n\n $ JWT_AUTH_PREFIX=JWT && http --auth-type=jwt --auth=\"\" example.org -h\n\n- Sometimes you don't need to expose the JWT token on the command line, you can use the environment variable:\n\n .. code-block:: bash\n\n $ export JWT_AUTH_TOKEN=secret\n\n And it should work:\n\n .. code-block:: bash\n\n $ http teracy.com --auth-type=jwt -v\n\n GET / HTTP/1.1\n Accept: */*\n Accept-Encoding: gzip, deflate\n Authorization: Bearer secret\n Connection: keep-alive\n Host: teracy.com\n User-Agent: HTTPie/0.9.7\n\nYou can combine the usage whatever you like for your cases.\n\n\nContributing\n------------\n\nPlease create pull requests to the `develop` branch by following http://dev.teracy.org/docs/workflow.html\n\nDeveloping\n----------\n\nWe use Docker workflow for development now. To start developing:\n\n- Make sure to use teracy-dev by following: http://dev.teracy.org/docs/getting_started.html\n\n- Fork this repo and clone to `~/teracy-dev/workspace`:\n\n.. code-block:: bash\n\n $ cd ~/teracy-dev/workspace\n $ git clone \n $ cd httpie-jwt-auth\n $ git remote add upstream git@github.com:teracyhq/httpie-jwt-auth.git\n\n- SSH into the VM to run commands as following:\n\n.. code-block:: bash\n\n $ cd ~/teracy-dev\n $ vagrant ssh\n $ ws\n $ cd httpie-jwt-auth\n $ docker-compose up # to test all the supported httpie versions with the most used Python version\n $ docker-compose up httpie_latest # to test with the latest httpie version with the most used Python version\n $ docker-compose -f docker-compose.yml -f docker-compose.py36.yml up # to test all the supported httpie versions with Python 3.6\n\n- Register your account at https://travis-ci.org and enable `httpie-jwt-auth` repo\n\n- Add the following settings to the travis-ci repo:\n\n + `DOCKER_USER` for the user or organization Docker namespace\n + `DOCKER_USERNAME` for the username of the Docker Hub\n + `DOCKER_PASSWORD` for the password of the Docker Hub\n + `IMG_REPO` for the docker repo on your `DOCKER_USER` account\n + `IMG_REPO_PREFIX` is optional\n\n See .travis.yml for details\n\n- Start creating new Docker images to be shared within our community\n\nFAQs\n----\n\n#. How to load JWT token from a file?\n\n .. code-block:: bash\n\n $ http --auth-type=jwt --auth=\"$(cat mytoken.txt)\" example.org\n\n See: https://github.com/teracyhq/httpie-jwt-auth/issues/4\n\n#. How to use auth prefix other than default `Bearer`, for example `Token_Prefix` instead?\n\n You could use environment variable to specify `JWT_AUTH_PREFIX` for permanent prefix usage:\n\n .. code-block:: bash\n\n $ export JWT_AUTH_PREFIX=Token_Prefix\n\n and it should work:\n\n .. code-block:: bash\n\n $ http teracy.com --auth-type=jwt --auth=\"abc\" -v\n\n GET / HTTP/1.1\n Accept: */*\n Accept-Encoding: gzip, deflate\n Authorization: Token_Prefix abc\n Connection: keep-alive\n Host: teracy.com\n User-Agent: HTTPie/0.9.7\n\n or for one time usage only with the specified jwt auth prefix:\n\n .. code-block:: bash\n\n $ JWT_AUTH_PREFIX=Token_Prefix && http teracy.com --auth-type=jwt --auth=\"abc\" -v\n\n GET / HTTP/1.1\n Accept: */*\n Accept-Encoding: gzip, deflate\n Authorization: Token_Prefix abc\n Connection: keep-alive\n Host: teracy.com\n User-Agent: HTTPie/0.9.7\n\n\nDiscussions\n-----------\n\nJoin us:\n\n- https://groups.google.com/forum/#!forum/teracy\n\n- https://www.facebook.com/groups/teracy\n\nGet our news:\n\n- https://www.facebook.com/teracyhq\n\n- https://twitter.com/teracyhq\n\n\nAuthor and contributors\n-----------------------\n\nSee more details at `AUTHORS.md` and `CONTRIBUTORS.md` files.\n\n\nLicense\n-------\n\nBSD License\n\n::\n\n Copyright (c) Teracy, Inc. and individual contributors.\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without modification,\n are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. Neither the name of Teracy, Inc. nor the names of its contributors may be used\n to endorse or promote products derived from this software without\n specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\n ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n.. |travis build status| image:: https://travis-ci.org/teracyhq/httpie-jwt-auth.png?branch=develop\n.. _travis build status: https://travis-ci.org/teracyhq/httpie-jwt-auth\n\n.. |coveralls status| image:: https://coveralls.io/repos/github/teracyhq/httpie-jwt-auth/badge.svg?branch=develop\n.. _coveralls status: https://coveralls.io/github/teracyhq/httpie-jwt-auth?branch=develop\n\n.. |codeclimate status| image:: https://codeclimate.com/github/teracyhq/httpie-jwt-auth/badges/gpa.svg\n.. _codeclimate status: https://codeclimate.com/github/teracyhq/httpie-jwt-auth\n\n.. |pypi status| image:: https://badge.fury.io/py/httpie-jwt-auth.svg\n.. _pypi status: https://badge.fury.io/py/httpie-jwt-auth\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/teracyhq/httpie-jwt-auth", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/teracyhq/httpie-jwt-auth", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "httpie-jwt-auth", "package_url": "https://pypi.org/project/httpie-jwt-auth/", "platform": "", "project_url": "https://pypi.org/project/httpie-jwt-auth/", "project_urls": { "Download": "https://github.com/teracyhq/httpie-jwt-auth", "Homepage": "https://github.com/teracyhq/httpie-jwt-auth" }, "release_url": "https://pypi.org/project/httpie-jwt-auth/0.3.0/", "requires_dist": [ "httpie (>=0.9.7)" ], "requires_python": "", "summary": "JWTAuth plugin for HTTPie.", "version": "0.3.0" }, "last_serial": 2719490, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0f31e0bdad82e3c2200981bae76d3ecd", "sha256": "5a29db8e9a0ab55778737d5d681874a8ae676724597bd68312692cda69f114f7" }, "downloads": -1, "filename": "httpie-jwt-auth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0f31e0bdad82e3c2200981bae76d3ecd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3005, "upload_time": "2015-08-23T18:47:19", "url": "https://files.pythonhosted.org/packages/64/ae/d8b8cf342e23c684cb573cab182d6db4dd62c1674787e583f2db5bd85ed2/httpie-jwt-auth-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "34b77999ee360155c85e1d1e2603794a", "sha256": "4f46bfd6d07113cef7f9539da0c5143d73c9869e374c811855c722a94fb251c9" }, "downloads": -1, "filename": "httpie-jwt-auth-0.2.0.tar.gz", "has_sig": false, "md5_digest": "34b77999ee360155c85e1d1e2603794a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3441, "upload_time": "2016-01-29T10:44:30", "url": "https://files.pythonhosted.org/packages/ba/6c/9cb7cf08598e2a775fcb5e5f46df409529f19156ab0490c81a7fab06889d/httpie-jwt-auth-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "0637f571c8d9988aa783e44e2e71272b", "sha256": "4bff4deb52823b5575e86f07a763190a51b5c6ddc4374b3a2e1c48f4eca4bd26" }, "downloads": -1, "filename": "httpie-jwt-auth-0.2.1.tar.gz", "has_sig": false, "md5_digest": "0637f571c8d9988aa783e44e2e71272b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3445, "upload_time": "2016-01-29T17:18:05", "url": "https://files.pythonhosted.org/packages/77/09/29b188691b62519fdfac6f2e194b659a369e63688a252c6108ce9f992b02/httpie-jwt-auth-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b3d3b66ba4badeeebbf1283730f9edfb", "sha256": "41c38d4c9febae049ca55bc15b926143f8bdfd0815813d14786a5beb3b5fffd1" }, "downloads": -1, "filename": "httpie_jwt_auth-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3d3b66ba4badeeebbf1283730f9edfb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8334, "upload_time": "2017-03-21T06:01:17", "url": "https://files.pythonhosted.org/packages/71/46/a2c3dc6744c8da1922994e56a5e8c8021be4987737d8ec50bbde7e03f057/httpie_jwt_auth-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a68b7ecabb566f425786643742500c11", "sha256": "49a03ce2285905c21485d2df48b6fa18c990cb4bca1c38a96920e8d35300e5e1" }, "downloads": -1, "filename": "httpie-jwt-auth-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a68b7ecabb566f425786643742500c11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4982, "upload_time": "2017-03-21T06:01:20", "url": "https://files.pythonhosted.org/packages/f2/71/f94183fe6df24cd4f93d85c431af803af5c8837657c9b0da328d34b422cc/httpie-jwt-auth-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b3d3b66ba4badeeebbf1283730f9edfb", "sha256": "41c38d4c9febae049ca55bc15b926143f8bdfd0815813d14786a5beb3b5fffd1" }, "downloads": -1, "filename": "httpie_jwt_auth-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3d3b66ba4badeeebbf1283730f9edfb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8334, "upload_time": "2017-03-21T06:01:17", "url": "https://files.pythonhosted.org/packages/71/46/a2c3dc6744c8da1922994e56a5e8c8021be4987737d8ec50bbde7e03f057/httpie_jwt_auth-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a68b7ecabb566f425786643742500c11", "sha256": "49a03ce2285905c21485d2df48b6fa18c990cb4bca1c38a96920e8d35300e5e1" }, "downloads": -1, "filename": "httpie-jwt-auth-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a68b7ecabb566f425786643742500c11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4982, "upload_time": "2017-03-21T06:01:20", "url": "https://files.pythonhosted.org/packages/f2/71/f94183fe6df24cd4f93d85c431af803af5c8837657c9b0da328d34b422cc/httpie-jwt-auth-0.3.0.tar.gz" } ] }