Questions tagged [mongodb-authentication]

Used for questions about the authentication and role model on MongoDB.

MongoDB per default starts without the requirement for authentication of a user. It is highly recommended to enable authentication for any kind of production setup following the official documentation. Otherwise anyone knowing the endpoint to connect to the database can execute any command without restrictions including the deletion of all data.

25 questions
0
votes
0 answers

MongoServerError: bad auth : Authentication failed. despite all solutions

Hi all so I went through the MERN Stack tutorial: https://www.mongodb.com/languages/mern-stack-tutorial. Am not able to connect successfully to MongoDB. Server is running on port: 8080 MongoServerError: bad auth : Authentication failed. at…
0
votes
0 answers

Flask user authentication with Mongodb

Im developing a Flask app, and I need to do a login and user role based currently using Mongodb as database and want to use Mongodb > App Services > Data Access > Authentication as auth system. Does anyone know a library to use it or a better way to…
David
  • 26
  • 3
0
votes
1 answer

How do you set up authentication in mongoDB compass? Every solution uses the mongod terminal not the compass terminal

What I am trying to do: I want to have my schema require a log in to order to gain access From my understanding, you must first use the --auth flag to enable authorization. When I do this in the compass shell, it says auth is not…
Wayne
  • 660
  • 6
  • 16
0
votes
1 answer

Authentication fails with error "unsupported URL" in MongoDB Realm iOS SDK

I am trying to authenticate into my MongoDB Realm app anonymously through the Realm iOS SDK, but I am getting the following error: Task .<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002…
wristbands
  • 1,021
  • 11
  • 22
0
votes
1 answer

unable to store phone login credentials in mongodb from firebase

I am using firebase and mongodb atlas. I have saved social media login credentials like email, name, picture in mongodb users collection. but I am unable to save phone login credentials like phone number and uid. when I login into app using social…
0
votes
0 answers

MongoDB Auth Error running Local on MACOS

I installed Locally on mac. Created user superuser with root privledges as per MongoDB Docs:https://docs.mongodb.com/guides/server/auth/#procedure > db.createUser({user:"superuser",pwd:"strongPassword",roles:["root"]}) Successfully added user: {…
0
votes
1 answer

MongoDB raw java connection

I am trying to create a generic mongo connection component that will be used with different mongo DB instances. I managed to make it work with some code like: // Creating a Mongo client MongoClient mongo = new MongoClient( "localhost" , 27017…
Liviu Stirb
  • 5,876
  • 3
  • 35
  • 40
0
votes
0 answers

How to insert Documents to MongoDB stitch from client app without authentication (as admin)

i want to store users TTL(Time to live) data to DataBase even his not confirmed the email and not authenticated. So after confirmation i will set 'activated:true' and keep the user data. i'm using a Reactjs app with stitch.
-2
votes
2 answers

I followed the mongoDB docs and now cannot access my DB I get this error: connect ECONNREFUSED 127.0.0.1:27017

Below I list the directions I followed from the docs Problem After following the docs listed below I am unable to access my database. I most definitely did not forget my password as I actually saved the query that I ran to create the user I will…
Wayne
  • 660
  • 6
  • 16
1
2