Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Laravel + Mongo : Authentication failed

Mirko Tebaldi June 21, 2019

I know that in the pipeline environment, the mongo service is created without authentication.

 

The problem is that i do not know how to AVOID to use authentication. So I got this error

 

MongoDB\Driver\Exception\AuthenticationException: Authentication failed.

 

I am using laravel with the well-know Jens Segers's package for mongodb.

 

Can I force pipeline to setup my user/pwd/auth method ?

OR can I force laravel/mongo package to NOT use auth?

2 answers

1 accepted

0 votes
Answer accepted
Mirko Tebaldi June 25, 2019

Ok, we cannot set mongodb in pipeline so I created a new connection with no username and password.

0 votes
mrawsl March 11, 2020

Ok, we cannot set mongodb in pipeline so I created a new connection with no username and password.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events