Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch unauthenticated check #90

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

aljones15
Copy link
Contributor

@aljones15 aljones15 commented Aug 31, 2022

This further cleans up code in authn.js, but is untested with major projects.

This is not a priority patch and can wait. It is more style and a minor bug fix.

@aljones15 aljones15 self-assigned this Aug 31, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 31, 2022

Codecov Report

Merging #90 (98a209c) into main (b4c1c10) will decrease coverage by 0.01%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
- Coverage   87.14%   87.13%   -0.02%     
==========================================
  Files           8        8              
  Lines         817      816       -1     
==========================================
- Hits          712      711       -1     
  Misses        105      105              
Impacted Files Coverage Δ
lib/authn.js 77.04% <91.66%> (-0.13%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dlongley
Copy link
Member

dlongley commented Sep 1, 2022

Needs rebase.

*
* @returns {Promise<object>} Returns an object with the db and admin.
*/
async function _getUnauthenticatedDb({config}) {
async function _getUnauthenticatedDb({options}) {
// only use the config stuff with out auth credentials
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is not correct any more, right? And is this the right thing to do since this is supposed to be an authenticated DB connection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants