معرفی شرکت ها


asymmetric-jwt-auth-1.0.0b1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Asymmetric key based authentication for HTTP APIs
ویژگی مقدار
سیستم عامل -
نام فایل asymmetric-jwt-auth-1.0.0b1
نام asymmetric-jwt-auth
نسخه کتابخانه 1.0.0b1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Craig Weber
ایمیل نویسنده crgwbr@gmail.com
آدرس صفحه اصلی https://github.com/crgwbr/asymmetric-jwt-auth
آدرس اینترنتی https://pypi.org/project/asymmetric-jwt-auth/
مجوز ISC
Asymmetric JWT Authentication ============================= .. image:: https://img.shields.io/pypi/v/asymmetric_jwt_auth.svg :target: https://pypi.python.org/pypi/asymmetric_jwt_auth .. image:: https://gitlab.com/crgwbr/asymmetric_jwt_auth/badges/master/pipeline.svg :target: https://gitlab.com/crgwbr/asymmetric_jwt_auth/-/commits/master .. image:: https://gitlab.com/crgwbr/asymmetric_jwt_auth/badges/master/coverage.svg :target: https://gitlab.com/crgwbr/asymmetric_jwt_auth/-/commits/master What? ----- This is an library designed to handle authentication in *server-to-server* API requests. It accomplishes this using RSA public / private key pairs. Why? ---- The standard pattern of using username and password works well for user-to-server requests, but is lacking for server-to-server applications. In these scenarios, since the password doesn’t need to be memorable by a user, we can use something far more secure: asymmetric key cryptography. This has the advantage that a password is never actually sent to the server. How? ---- A public / private key pair is generated by the client machine. The server machine is then supplied with the public key, which it can store in any method it likes. When this library is used with Django, it provides a model for storing public keys associated with built-in User objects. When a request is made, the client creates a JWT including several claims and signs it using it’s private key. Upon receipt, the server verifies the claim to using the public key to ensure the issuer is legitimately who they claim to be. The claim (issued by the client) includes components: the username of the user who is attempting authentication, the current unix timestamp, and a randomly generated nonce. For example: :: { "username": "guido", "time": 1439216312, "nonce": "1" } The timestamp must be within ±20 seconds of the server time and the nonce must be unique within the given timestamp and user. In other words, if more than one request from a user is made within the same second, the nonce must change. Due to these two factors no token is usable more than once, thereby preventing replay attacks. To make an authenticated request, the client must generate a JWT following the above format and include it as the HTTP Authorization header in the following format: :: Authorization: JWT <my_token> **Important note**: the claim is *not* encrypted, only signed. Additionally, the signature only prevents the claim from being tampered with or re-used. Every other part of the request is still vulnerable to tamper. Therefore, this is not a replacement for using SSL in the transport layer. **Full Documentation**: https://asymmetric-jwt-auth.readthedocs.io


نیازمندی

مقدار نام
>=2.0.1 PyJWT
>=3.4.6 cryptography
>=2.2 Django
>=5.5 coverage
>=1.7.0 django-stubs
>=3.2.1 flake8
>=1.1.0 freezegun
>=0.812 mypy
>=0.5.1 sphinx-rtd-theme
>=3.5.1 sphinx
>=0.1.1 types-cryptography
>=3.7.4.3 typing
>=1.2.0 versiontag


نحوه نصب


نصب پکیج whl asymmetric-jwt-auth-1.0.0b1:

    pip install asymmetric-jwt-auth-1.0.0b1.whl


نصب پکیج tar.gz asymmetric-jwt-auth-1.0.0b1:

    pip install asymmetric-jwt-auth-1.0.0b1.tar.gz