
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
django-graphql-jwt-reload
Advanced tools
|Pypi| |Build Status| |Codecov| |Codacy|
JSON Web Token <https://jwt.io/>
_ authentication for Django GraphQL <https://github.com/graphql-python/graphene-django>
_
Install last stable version from Pypi:
::
pip install django-graphql-jwt
Add AuthenticationMiddleware
middleware to your MIDDLEWARE settings:
.. code:: python
MIDDLEWARE = [
...
'django.contrib.auth.middleware.AuthenticationMiddleware',
...
]
Add JSONWebTokenMiddleware
middleware to your GRAPHENE settings:
.. code:: python
GRAPHENE = {
'SCHEMA': 'mysite.myschema.schema',
'MIDDLEWARE': [
'graphql_jwt.middleware.JSONWebTokenMiddleware',
],
}
Add JSONWebTokenBackend
backend to your AUTHENTICATION_BACKENDS:
.. code:: python
AUTHENTICATION_BACKENDS = [
'graphql_jwt.backends.JSONWebTokenBackend',
'django.contrib.auth.backends.ModelBackend',
]
Add django-graphql-jwt mutations to the root schema:
.. code:: python
import graphene
import graphql_jwt
class Mutation(graphene.ObjectType):
token_auth = graphql_jwt.ObtainJSONWebToken.Field()
verify_token = graphql_jwt.Verify.Field()
refresh_token = graphql_jwt.Refresh.Field()
schema = graphene.Schema(mutation=Mutation)
Fantastic documentation is available at https://django-graphql-jwt.domake.io.
.. |Pypi| image:: https://img.shields.io/pypi/v/django-graphql-jwt.svg :target: https://pypi.python.org/pypi/django-graphql-jwt :alt: Pypi
.. |Build Status| image:: https://travis-ci.org/flavors/django-graphql-jwt.svg?branch=master :target: https://travis-ci.org/flavors/django-graphql-jwt :alt: Build Status
.. |Codecov| image:: https://codecov.io/gh/flavors/django-graphql-jwt/branch/master/graph/badge.svg :target: https://codecov.io/gh/flavors/django-graphql-jwt :alt: Codecov
.. |Codacy| image:: https://api.codacy.com/project/badge/Grade/4f9fd439fbc74be88a215b9ed2abfcf9 :target: https://app.codacy.com/gh/flavors/django-graphql-jwt?utm_source=github.com&utm_medium=referral&utm_content=flavors/django-graphql-jwt&utm_campaign=Badge_Grade_Dashboard :alt: Codacy
FAQs
JSON Web Token for Django GraphQL
We found that django-graphql-jwt-reload demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.