Passport
MongoDB
Our great sponsors
Passport | MongoDB | |
---|---|---|
63 | 244 | |
22,349 | 25,295 | |
- | 1.1% | |
5.1 | 10.0 | |
about 1 month ago | 4 days ago | |
JavaScript | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Passport
-
Non-technical person looking for your help
Next, use something like https://www.npmjs.com/package/passport, this is authentication middleware, and it works similarly for different authentication providers. Carefully read the documentation. OAuth is complicated, but that's because it solves a complicated problem
-
Exploring the Most Commonly Used Folder Names in Popular NPM Packages
lib: The lib folder, short for "library", is mostly used to store the actual source code of the package, but it can also be used to store third-party code, utilities and helpers. Example from passport.
-
Instagram Graph API Explained: How to log in users
passport for authentication
-
Auth.js Authentication for the Web
I went down the rabbithole of using next-auth (now authjs) for a recent project. Having used Passport.js [1] for Oauth2 the last time I was doing node.js ~3 years ago, I found this library to have many footguns as comments/answers on SO and Github.
Seems like many people are trying to shoehorn their codebase [2] (!!) to make it work with the way the library manages sign-in flow, redirects, cookies, logout, etc. [3]
These were solved problems in the MEAN stack era with middlewares, but now that Next.js/react is the trend, people are doing everything they can to make it work - from relaxing security configs, to stashing things in the JWT just so some callback can get an additional piece of data.
- I'm having error saying that req.isAuthenticated() not a function
-
NodeJS + Postgres DB + Passport JWT + Passport Local Login and Authentication
Here I am writing my first blog 😇 about how do we connect a simple [NodeJS Application] 😎(https://www.npmjs.com/package/express) to Postgres and use PassportJS for authentication and authorization.
-
Spotify OAuth2 Authentication in a NestJS Application
As there is no official documentation for integrating this type of authentication with NestJS and development articles usually focus on Google and Facebook integration, this article presents an alternative to integrate the Spotify Authorization Code Flow with NestJS using the Passport authentication middleware along with the passport-spotify strategy.
-
Keycloak Express openid-client
We are going to use this openid-client and passport to connect to keycloak. I install the following
-
Secure API-Auth based on Express - References
You can use passportjs
-
How to sign out user after a period of time
I use PassportJS to manage authentication strategies and express-session with connect-redis to manage user sessions. What this means is that when a user logs in, their session is created on redis and has an identifier assigned to it which is stored in a an http only cookie on the user s browser with 2w expiry time. If they login again, I extend the expiration date (possible using express-session)
MongoDB
-
Build Your Own Uptime Monitor with MeteorJS + Fetch + Plotly.js ☄️🔭
MongoDB to store our data as documents, close to JS objects
-
How to choose the right type of database
MongoDB: Known for its ease of development and strong community support, MongoDB is effective in scenarios where flexible schema and rapid iteration are more critical than strict ACID compliance.
-
Mastering Microservices: A Hands-On Tutorial with Node.js, RabbitMQ, Nginx, and Docker
Ensure you have MongoDB installed for data storage. You can download MongoDB Community Server from MongoDB's official website or use the cloud cluster.
-
How to Build & Deploy Scalable Microservices with NodeJS, TypeScript and Docker || A Comprehesive Guide
We will be using MongoDB as a database on both the Auth microservice and notifications microservice, sign up for a MongoDB Atlas account here incase you donot have one and donot have its desktop application(mongodb campass) installed and would like to use mongodb atlas. This cloud-based database service offers a free tier and simplifies the process of managing MongoDB databases.
-
Build a GraphQL API with NodeJS and TypeScript || A Comprehensive Guide
Head over to MongoDB and create an account or login to grab your connection string.
-
Uploading and Serving Images from MongoDB in Golang
MongoDB, a document-oriented NoSQL database, will be our data powerhouse. We'll utilize the mongo-driver library to seamlessly connect our Golang application to MongoDB. This section will cover essential database interactions, including creating collections, storing metadata, and efficiently querying for image-related data. Understanding these fundamentals is crucial for building a robust image storage and retrieval system.
-
Database Fundamentals
Writes in MongoDB are persisted before the server returns acknowledgement. For a typical replica set deployment, this additionally means replicated and made durable on disk for a majority of nodes.
MongoDB has tunable durability guarantees; clients can opt-out of this behavior.
The layers are deep, but this is the function that handles waiting before acknowledgement:
https://github.com/mongodb/mongo/blob/20f42d9dc89999d119f35a...
-
Create your own AI voice assistant bot with Node.js using Google Bard
MongoDB — a database service
-
MongoDB Quick Start Guide 🍃⚡️
MongoDB is an open source NoSQL Document database which horizontally scales utilizing clustered servers in replica-sets. A great option for testing and performing local development with MongoDB is using Docker and Docker Compose. The following docker compose spec will create a local docker container running MongoDB with the data persisted to a docker volume.
- MongoDB’s New Query Engine
What are some alternatives?
mongo-express - Web-based MongoDB admin interface, written with Node.js and express
Marten - .NET Transactional Document DB and Event Store on PostgreSQL
LiteDB - LiteDB - A .NET NoSQL Document Store in a single data file
Keycloak - Open Source Identity and Access Management For Modern Applications and Services
LevelDB - LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
everyauth - node.js auth package (password, facebook, & more) for Connect and Express apps
Grant - OAuth Proxy
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
supabase - The open source Firebase alternative.
SQLAlchemy - The Database Toolkit for Python
Apache Ignite - Apache Ignite
SqlKata Query Builder - SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird