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

Adds basic auth #96

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

therebelrobot
Copy link

@therebelrobot therebelrobot commented Jul 10, 2019

This PR is aiming to address #60, since there hasn't been much conversation around it yet. I tried to match the error responses as closely as possible to the surrounding code, and am working with a basic config setup of "static": { "auth": [ "username", "password" ] } in the config file itself (I also am opening a PR to zeit/schemas to support this addition, vercel/schemas#54).

Please let me know if additional changes are needed, I'd be happy to address any concerns. Or if this is a "will not fix" kind of issue, please let me know as well. I know for me and my team, though, this would make our lives a lot easier.

Note: I'm pretty sure I got most of the coverage, but again, just working off existing examples, let me know if more is needed. EDIT: found the issue, should be at 100% coverage now

@codecov
Copy link

codecov bot commented Jul 10, 2019

Codecov Report

Merging #96 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
+ Coverage   99.42%   99.43%   +0.01%     
==========================================
  Files           2        2              
  Lines         345      354       +9     
==========================================
+ Hits          343      352       +9     
  Misses          2        2
Impacted Files Coverage Δ
src/index.js 99.42% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce35fcd...c6da68e. Read the comment docs.

@therebelrobot therebelrobot mentioned this pull request Jul 10, 2019
@the-architect
Copy link

very nice. :) thank you <3 Let's see when this gets a review

@glemmaPaul
Copy link

Hello Zeit 👋

Any update on this? Our team over here can be using this a lot :) Let me know if I can help in any way to get this merged!

Thanks,
Paul

@bennidhamma
Copy link

fwiw, our team would love to have this work as well, so we can lock down internal deployments.

@NicholasG04
Copy link

This would be a really nice addition for dev environments.

@crimson-med
Copy link

Any update on this progress?

warren-bank added a commit to warren-bank/node-serve that referenced this pull request Dec 22, 2021
warren-bank added a commit to warren-bank/node-serve that referenced this pull request Dec 22, 2021
warren-bank added a commit to warren-bank/node-serve that referenced this pull request Dec 22, 2021
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.

None yet

7 participants