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.3.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.2.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyauthtools-0.2.3.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.2.3.tar.gz
Algorithm Hash digest
SHA256 4201d045e5099900a25138589dd13819ff4cd70c49e240ea8fc1d9950127a4f5
MD5 878a21fea5068f0aafabc2cd1e13418b
BLAKE2b-256 e79335ec5b8d30974165e8757e2a9efe9030e1e9811f436f65d1db653febe845

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyauthtools-0.2.3-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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68bfaa69b6cba4ef5b1997282d3d9d685750b500de92f3a44d9ceb6f452d759f
MD5 459f41c32544c90a2858fcfc97607de8
BLAKE2b-256 535672d777abdbd43932a9d9d8942a6dba84efaf7434ef8a54c3eb17fc87f3fb

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