
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
A django app that replaces the django admin authentication mechanism by deferring to an oauth2 provider
A django app that replaces the django admin authentication mechanism by deferring to an oauth2 provider.
django-admin-oauth2 should support Python 2.7 & Python 3.6 to 3.11, pypy, and Django versions 1.6 through 4
Step 1: pip install django-admin-oauth2
and include it in your project's requirements
Step 2: Include the django-admin-oauth2 urlconf in your project's urls.py:
Django 1.x
url(r'/admin/oauth/', include('oauthadmin.urls'))
Django >= 2.0
re_path(r'/admin/oauth/', include('oauthadmin.urls'))
Step 3: Include oauthadmin in your INSTALLED_APPS:
INSTALLED_APPS = (
'oauthadmin'
)
Step 4: Install the middleware in your project's settings.py:
MIDDLEWARE_CLASSES = (
'oauthadmin.middleware.OauthAdminSessionMiddleware'
)
make sure that this comes AFTER 'django.contrib.sessions.middleware.SessionMiddleware'
Step 5: Set up all the correct options (see below for available options)
If you want to test this app, please run the following Makefile
command:
make test
When the CSRF validation token doesn't match, django-admin-oauth2 will redirect back to the login url so it can retry the authorization step. Sometimes people will bookmark the oauth server with an out-of-date CSRF state string, this is better than showing them an error page.
JSONSerializer
FAQs
A django app that replaces the django admin authentication mechanism by deferring to an oauth2 provider
We found that django-admin-oauth2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.