
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Djdg Django Oauth provides a simple signature middleware verification between apps
mail to zane.yang@hey900.com
Install with pip
pip install djdg-django-oauth
Add djdg_oauth
to your INSTALLED_APPS
INSTALLED_APPS = (
...
'djdg_oauth',
)
run migrate to add tables:
python manage.py migrate djdg_oauth
list, add, del app secret:
python manage.py listauthapp {app_name}
python manage.py addauthapp {app_name}
python manage.py delauthapp {app_name}
add middleware(options, you can create yourself middleware with djdg_oauth.oauthclient.OauthClient.verify_request):
MIDDLEWARE_CLASSES = (
...
'djdg_oauth.middleware.DjdgAuthMiddleware',
)
add settings(app secret gaved by others)
DJDG_AUTH = {
"APPS": [
{"appid": "xxxxxx", "secret": "xxxxxxxxxxxxxxxxxxx", "app": "xxx"},
....
]
"FULL_ESCAPE_URL": [....] # full match url to escape auth check,
"REGEX_ESCAPE_URL": [....] # regex match url to escape auth check,
"REGEX_CHECK_URL":[...] # need check url, if not empty, escape urls invalid
}
)
Verify request
from djdg_oauth.oauthclient import OauthClient
auth = OauthClient()
auth.verify(request)
Do request
from djdg_oauth.oauthclient import OauthClient
request_data = {
"url": #url,
"app": #app type,
"parameters": #all request data,
"method": #request method,
"headers": #default None
}
OauthClient.oauth_request(**request_data)
djdg-oauth is released under the terms of the BSD license. Full details in LICENSE
file.
version 0.0.20
debug ascii error
FAQs
djdg OAuth2 method for Django
We found that djdg-django-oauth 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.