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.8.tar.gz (4.5 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.8-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyauthtools-0.1.8.tar.gz
  • Upload date:
  • Size: 4.5 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.8.tar.gz
Algorithm Hash digest
SHA256 5645d1bc8cca42eca9002bfd0d5528b2e21ec3fb1f5fb5fd920b37c4a35a31c3
MD5 7fa13853fbde7e1b31fe0626a40bf09e
BLAKE2b-256 83e44b0fd962a19657e79562179acac64a1c7c268ad98d10bd9f6247b096015a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyauthtools-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e82fc52397e67c0642406343c6eb07b270f3b8534828602c8feccd279168f4ec
MD5 1077a1248343eb5ef16c063e9c2a5074
BLAKE2b-256 2daf02013c1a022fc1884cbb7b89000ee9354c3a9985c79e41e4e21a325bfa33

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