{ "info": { "author": "Nate Ferrero", "author_email": "nateferrero@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "oauth2lib\n=========\n\n## Python OAuth 2.0 Client and Provider Library\n\n### Authorization Code Grant :: OAuth 2 Section 4.1\n\nAuthorization Request :: OAuth 2 Section 4.1.1\n\n [For browser apps this happens in the window]\n Request: GET /get_authorization_code\n ?response_type=code\n &client_id={CLIENT_ID}\n &redirect_uri={REDIRECT_URI}\n [&state={STATE}]\n [&scope={SCOPE}]\n\n Response: HTTP 302\n Location={REDIRECT_URI}\n ?code={CODE}\n &state={STATE}\n\n Error Response: HTTP 302\n Location={REDIRECT_URI}\n ?error=access_denied\n &state={STATE}\n\nAccess Token Request :: OAuth 2 Section 4.1.3\n\n [Server side only]\n Request: GET /get_access_token\n ?grant_type=authorization_code\n &client_id={CLIENT_ID}\n &client_secret={CLIENT_SECRET}\n &redirect_uri={REDIRECT_URI}\n &code={CODE}\n\n Response: HTTP 200\n {\n \"access_token\": \"{ACCESS_TOKEN}\",\n \"token_type\": \"{TOKEN_TYPE}\", // See OAuth 2 Section 7.1 Access Token Types\n \"expires_in\": 3600,\n \"refresh_token\": \"{REFRESH_TOKEN}\"\n }\n\n Error Response: HTTP 400\n {\n \"error\": \"access_denied\",\n \"error_description\": \"User does not have access to the team.\"\n }", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/NateFerrero/oauth2lib", "keywords": null, "license": "LICENSE.md", "maintainer": null, "maintainer_email": null, "name": "oauth2lib", "package_url": "https://pypi.org/project/oauth2lib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/oauth2lib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/NateFerrero/oauth2lib" }, "release_url": "https://pypi.org/project/oauth2lib/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "OAuth 2.0 compliant client and server library.", "version": "1.0.0" }, "last_serial": 920286, "releases": { "1.0.0": [] }, "urls": [] }