Skip to main content
**Flask-Authorization-Panda is a Flask extension that provides decorators
for various authentication methods for RESTful web services.

Currently, only HTTP Basic Authentication is supported. **

Usage
-----

>>> from flask.ext.flask_authorization_panda import basic_auth

During app initialization, store your required username/password in
the config attribute::

app = Flask(__name__)
app.config['basic_auth_credentials'] = dict(username='admin',
password='secret')


Finally, simple apply the @basic_auth decorator to methods which you
want to require HTTP Basic Auth::

>>> @app.route('/')
>>> @basic_auth
>>> def hello_world():
>>> return jsonify({"statusCode": 200, "message": "Ok"})

This will result in all calls against the decorated method to (1) check for
for credentials on the request.authorization object and (2) verify that
they match the contents of app.config['basic_auth_credentials]'

Metadata

Release files for Flask-Authorization-Panda 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Authorization-Panda 0.3
File Size Uploaded Provenance Actions
Flask-Authorization-Panda-0.3.tar.gz 2.7 kB Without provenance Details for Flask-Authorization-Panda-0.3.tar.gz

Release files / Flask-Authorization-Panda-0.3.tar.gz

Download URL Flask-Authorization-Panda-0.3.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1cdd57f281781c294e6cf45e192267c8aa96d5f5e39ca4583ca231a1cb00bc0f
BLAKE2b-256 checksum
How to use checksums
605a62ab32f60c708f8b1172a095b9cfa1830628323fb4c62e9817d84db55d6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-Authorization-Panda 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page