Authentication and authorization framework for Python apps
Basic framework to handle authentication and authorization in asynchronous Python applications.
Features:
- strategy to implement authentication (who or what is using a service?)
- strategy to implement authorization (is the acting identity authorized to do a certain action?)
- support for dependency injection for classes handling authentication and authorization requirements
- built-in support for JSON Web Tokens (JWTs) authentication
This library is freely inspired by authorization in ASP.NET Core; although its implementation is extremely different.
Installation
pip install neoteroi-auth
To install with support for JSON Web Tokens (JWTs) validation:
pip install neoteroi-auth[jwt]
Examples
For examples, refer to the examples folder.
If you have doubts about authentication vs authorization...
Authentication answers the question: Who is the user who is initiating the
action?, or more in general: Who is the user, or what is the service, that is
initiating the action?.
Authorization answers the question: Is the user, or service, authorized to
do something?.
Usually, to implement authorization, is necessary to have the context of the entity that is executing the action.
Usage in BlackSheep
neoteroi-auth is used in the second version of the
BlackSheep web framework, to implement
authentication and authorization
strategies for request
handlers.
To see how neoteroi-auth is used in blacksheep web framework, read:
Documentation
Under construction. 🚧
Metadata
Release files for neoteroi-auth 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neoteroi_auth-0.0.3.tar.gz | 12.9 kB | Without provenance | Details for neoteroi_auth-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neoteroi_auth-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for neoteroi_auth-0.0.3-py3-none-any.whl |
Total release size: 28.4 kB
Release files / neoteroi_auth-0.0.3.tar.gz
| Download URL | neoteroi_auth-0.0.3.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6925f52d5a6465cd1b998b5c0d591ba8f88b03948da45fb40411faf5581a9f7d
|
|
BLAKE2b-256 checksum How to use checksums |
dd7651b3880f6111248b472bbf09737fedf5f17b3083bd04942c1630c57615bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / neoteroi_auth-0.0.3-py3-none-any.whl
| Download URL | neoteroi_auth-0.0.3-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4970c67d21580480e86d14656bf0e408d2bde8214a5db21249620a04252c9bdb
|
|
BLAKE2b-256 checksum How to use checksums |
e3a71eae7b2f1113ec8ff6a9b3e864cc8f2cde62645e706c07a8595645f4982c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for neoteroi-auth 0.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.