Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
django-graphene-authentication
Advanced tools
A variant of djhango-graphql-jwt that can work with federations
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:
Capabilities added:
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.
.. code-block::
pip install django-graphql-apitoken
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:
FAQs
A variant of djhango-graphql-jwt that can work with federations
We found that django-graphene-authentication 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.