This package allows for HTTP authentication using JSON Web Tokens.
JWTAuth
extends requests AuthBase
, so usage is simple:
import requests
from requests_jwt import JWTAuth
auth = JWTAuth('secretT0Ken')
requests.get("http://jwt-protected.com", auth=auth)
More documentation is available at Read the Docs.
pip install requests_jwt