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

feat: add withBasicAuth utility for authentication #826

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from

Conversation

cjpearson
Copy link
Contributor

Resolves #551

This change adds a new utility withBasicAuth. By passing this function an event handler and username/password pair it will return a wrapped event handler which applies basic authentication before calling the inner handler.

@pi0 pi0 added the v1 label Nov 29, 2024
@pi0
Copy link
Member

pi0 commented Mar 24, 2025

Sorry this got stalled, is it possible to rebase PR against main? 🙏🏼

@cjpearson cjpearson force-pushed the feature/basic-auth branch from 5d0e714 to c8b5835 Compare March 25, 2025 09:59
@cjpearson
Copy link
Contributor Author

No worries! This is based on v1, but I'll look into a PR for main as well.

Copy link

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (v1@89265ec). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff          @@
##             v1     #826   +/-   ##
=====================================
  Coverage      ?   71.16%           
=====================================
  Files         ?       62           
  Lines         ?     3326           
  Branches      ?      719           
=====================================
  Hits          ?     2367           
  Misses        ?      938           
  Partials      ?       21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cjpearson
Copy link
Contributor Author

Added a port of this change for v2 here #998

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

Successfully merging this pull request may close these issues.

2 participants