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.0.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.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyauthtools-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ddf2976ce32022a12dbba43012e474faae00c8c21b85545649e0e0aaabaa1c59
MD5 33276bf09f4fb979b8f34ac424bfb668
BLAKE2b-256 921fe98050c3cec2b117fabab06218d1900e374e5250cbb6346b338b1859afef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyauthtools-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1db3687e9fa34fdfeaa9629d5f25b13b14318a535c7c6cb91baa7aa9ed3d73d9
MD5 8376bce28e7792ba502e95fe00469edb
BLAKE2b-256 e651d0d6f6ffac9620dd2b79493b050994f2b53ca1389798f5ecfcb15d7d7206

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