Skip to main content

Some auth tools using in python flask.

Project description

PyAuthTools

Some auth tools using in python flask.

Surpported Algorisms

HS256

RS256

Install

pip install pyauthtools

Environments

JWT_ALG = 'HS256'   # or 'RS256'
JWT_PUBLIC = b'xxx' # when RS256
JWT_SECRET = b'xxx' # pri_key or secret

Usages

@app.route('/index', methods=['POST', 'GET'])
@auth    # Just above the func
def index():
  return rend_template('index.html')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyauthtools-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyauthtools-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pyauthtools-0.1.2.tar.gz.

File metadata

  • Download URL: pyauthtools-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for pyauthtools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c0b7e6fc7794fc815cb2d392dcfba15c4cf3e4feada496772658a1a298c8ee7a
MD5 20ea9b995a3457a396ba35eb2bdee83f
BLAKE2b-256 fd6c453f17f40bb107258af23113400be62a82c9e9689c6f7c2ba419bfc2d248

See more details on using hashes here.

File details

Details for the file pyauthtools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyauthtools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for pyauthtools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3cdded4ac7e0c51800144e9518415d28deac867fcc6761d5a604542eb72103da
MD5 f96e7505d734fc04e4b8a42ea802cfd0
BLAKE2b-256 61bc32c07a0d0fa68cfc10839bdd773aa92a0ded5c99cb03846bac3bd94fbc95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page