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.2.5.tar.gz (4.6 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.2.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyauthtools-0.2.5.tar.gz
Algorithm Hash digest
SHA256 615e956da8a45ee17914dc389466b659cd0156749d446054c03866702a67e4c7
MD5 0021781955f513de311ad2fc1595d177
BLAKE2b-256 baed65505f3a45f1a51f7ad340b080620ee7210519cc8daaa49592eeac11421d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyauthtools-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 54f77528a4e4e37b6fa6b263f89ea9d4e661cf4fdecbb516c14877c37b592b16
MD5 b01f602820256061317ad4eddba07699
BLAKE2b-256 4403533dc0b541f1634980ed35e1af69b46abb1600b24c3142a05d110e7c4cc3

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