Skip to content

Commit

Permalink
Fix missing Mongo URI component
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvergnaud committed Apr 20, 2021
1 parent 28ea87e commit 5a5a771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MongoStore/src/main/java/prompto/store/mongo/MongoStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ private static String uriFromParams(IMongoStoreConfiguration config, char[] pass
.append(config.getPort())
.append("/")
.append(config.getDbName());
if(password!=null)
sb.append("?authSource=admin");
return sb.toString();
}

Expand Down

0 comments on commit 5a5a771

Please sign in to comment.