
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.