{ "info": { "author": "isra17", "author_email": "isra017@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: HTTP Servers" ], "description": ".. image:: https://circleci.com/gh/isra17/oauth2-proxy-cookie.svg?style=svg\n :target: https://circleci.com/gh/isra17/oauth2-proxy-cookie\n\nSupport library to be used with `bitly/oauth2_proxy\n`_ to validate and decode the Cookie\npassed upstream. The library provide a Flask extension to authorize requests\nbased on the Cookie.\n\nThe reference implementation in Go is located `here\n`_.\n\nExample\n=======\n\n.. code:: python\n\n from flask import request, abort\n from oauth2_proxy_cookie import Validator\n\n secret = \n validator = Validator(secret, '_oauth2_proxy')\n cookie = request.headers.get('Cookie')\n value, time = validator.validate(cookie)\n\nOr with Flask extension:\n\n.. code:: python\n\n from flask import request, abort\n from oauth2_proxy_cookie import Validator\n\n app = flask.Flask('Foo')\n oauth2_proxy = OAuth2ProxyCookie()\n oauth2_proxy.init_app(app, allowed=['/public_path'])\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/isra17/oauth2-proxy-cookie", "keywords": "oauth2-proxy authentication", "license": "LGPLv3+", "maintainer": "", "maintainer_email": "", "name": "oauth2-proxy-cookie", "package_url": "https://pypi.org/project/oauth2-proxy-cookie/", "platform": "", "project_url": "https://pypi.org/project/oauth2-proxy-cookie/", "project_urls": { "Homepage": "https://github.com/isra17/oauth2-proxy-cookie" }, "release_url": "https://pypi.org/project/oauth2-proxy-cookie/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "bitly/oauth2-proxy compatible library to decode and validate authenticated cookie.", "version": "0.1.0" }, "last_serial": 3241966, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4156f5247875d981912e6101edf0c193", "sha256": "290ed4620c9f118b0d7c7ad4e134f3d12822c63f314c268c394dd8e31ad99c98" }, "downloads": -1, "filename": "oauth2-proxy-cookie-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4156f5247875d981912e6101edf0c193", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2931, "upload_time": "2017-10-11T12:51:34", "url": "https://files.pythonhosted.org/packages/9b/fb/7493b065ddffc5208b71b483291aefa88548593b4147692cb593ebd05450/oauth2-proxy-cookie-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4156f5247875d981912e6101edf0c193", "sha256": "290ed4620c9f118b0d7c7ad4e134f3d12822c63f314c268c394dd8e31ad99c98" }, "downloads": -1, "filename": "oauth2-proxy-cookie-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4156f5247875d981912e6101edf0c193", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2931, "upload_time": "2017-10-11T12:51:34", "url": "https://files.pythonhosted.org/packages/9b/fb/7493b065ddffc5208b71b483291aefa88548593b4147692cb593ebd05450/oauth2-proxy-cookie-0.1.0.tar.gz" } ] }