denodrivers / denodrivers/mongo

Auth method not negotiated automatically

Open
#215 0 comments 2 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
TypeScript
Stars
511
Forks
89
PR merge metrics
No merged PRs in 30d

Description

In `Credential` interface it says that:
```
Which authentication mechanism to use. If not provided, one will be negotiated with the server.
```

But when one isn't provided, it throws:
```
MongoError: "Connection failed: MongoError: \"Auth mechanism not implemented in Deno driver: undefined\""
```

So this comment should either be removed or implemented.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Credential interface and reproduce the connection failure when no authentication mechanism is provided. Determine whether automatic negotiation is intended; done means either the documented negotiation works against the server or the misleading comment is removed, with the undefined-mechanism error no longer contradicting the interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, mongodb, typescript
Domain
authentication, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.