
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
This package allows integration with Firebase for authentication outside the Django context.
This package allows integration with Firebase for authentication outside the Django context.
Create your Firebase database, then download the .json
authentication file linked to your project.
Project settings
Service accounts
sectionPython
then download by clicking on Generate new private key
.json
file into your Django projectInstall authentication app in your project
pip install drf-easily-auth
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# Insert this app
'drf_easily_auth',
]
Add a Firebase configuration
FIREBASE_CONFIG_FILE = # Your Firebase config file path downloaded in step 1
Or
FIREBASE_CONFIG_FILE = {
apiKey: "AIqdqdymodlwEXOOdddVbacklbBXrNjwu6Mg",
authDomain: "oting-38060qddqdq4.firebaseapp.com",
projectId: "oting-3806dqdqdq04",
storageBucket: "oting-380604.appspt.com",
messagingSenderId: "3430090dqd20511",
appId: "1:343009511:web:e49dqdqd421ed29ea"
}
Configure custom Firebase authentication in rest framework
'DEFAULT_AUTHENTICATION_CLASSES': [
'drf_easily_auth.firebase.auth.FirebaseAuthentication',
],
Sync all existing users from your Firebase database
python3 manage.py syncfirebaseusers
Have fun with Firebase Authentication! 🚀
FAQs
This package allows integration with Firebase for authentication outside the Django context.
We found that drf-easily-auth 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.