django-graphene-authentication-1.0.87


توضیحات

A variant of djhango-graphql-jwt that can work with federations
ویژگی مقدار
سیستم عامل OS Independent
نام فایل django-graphene-authentication-1.0.87
نام django-graphene-authentication
نسخه کتابخانه 1.0.87
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Massimo Bono
ایمیل نویسنده massimobono1@gmail.com
آدرس صفحه اصلی https://github.com/Koldar/django-koldar-common-apps
آدرس اینترنتی https://pypi.org/project/django-graphene-authentication/
مجوز MIT
Introduction ============ Customizable backend that uses graphql to authenticate users. Abstraction of a graphql authentication mechanism. This is an modification of ``django-graphql-jwt``\ : I drop some functionalities that I did not care and add capabilities that I needed. Capabilities dropped: * cookies; Capabilities added: * custom names and exceptions for authentication graphql mutrations/queries (needed for federations); * ability to customize authentication mechanism; * ability to work with graphene-federations when there are multiple authentication mechanisms; * ability to be easily extended; Motivation ========== I needed to work with graphene federations wehere there werre multiple graphqlk mutations with names like "login", "me", "refresdh_tokens" and so on. ``django-graphql-jwt`` was more an hindrance than anything else since I need to authenticate via a token rather tha username and password. In the end I ported the feature I needed from ``django-graphql-jwt`` and created this variant. This apps does not rely on its oiwn authentication mechanism, but just relay all the information it knows about the graphql request to the auithentication backend. In this way **you** are in charge to perform authentication. Still, the package provides some standard authentication mechanism you can use. Installation ============ .. code-block:: pip install django-graphql-apitoken Configuration ============= You need to add this app to the INSTALLED_APPS: .. code-block:: INSTALLED_APPS += "django_graphql_apitoken" The second step is to create the authentication classes that graphene needs to be aware of. Create a new file in your project root and add the following:


نحوه نصب


نصب پکیج whl django-graphene-authentication-1.0.87:

    pip install django-graphene-authentication-1.0.87.whl


نصب پکیج tar.gz django-graphene-authentication-1.0.87:

    pip install django-graphene-authentication-1.0.87.tar.gz