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

Move all of Basic authentication logic into basic_auth module #346

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

palant
Copy link
Contributor

@palant palant commented Apr 18, 2024

Description

This establishes the same internal API for the basic_auth module as for health and metrics modules, the logic is now mostly self-contained in the module. While I hoped to avoid merge conflicts, there will be at least one merge conflict with #345 (importing server_info in basic_auth.rs will no longer be necessary).

Related Issue

This is another step towards fixing #342.

How Has This Been Tested?

Tests have been extended, so all the relevant scenarios should be tested automatically now. Functional testing on Linux didn’t show any issues.

Copy link

semanticdiff-com bot commented Apr 18, 2024

Review changes with SemanticDiff.

Analyzed 4 of 4 files.

Overall, the semantic diff is 3% smaller than the GitHub diff.

Filename Status
✔️ src/basic_auth.rs 1.13% smaller
✔️ src/cors.rs Analyzed
✔️ src/handler.rs 14.15% smaller
✔️ src/server.rs Analyzed

@palant palant mentioned this pull request Apr 18, 2024
13 tasks
@joseluisq joseluisq added enhancement New feature or request v2 v2 release codebase Related to the project's source code labels Apr 18, 2024
@joseluisq joseluisq changed the title refactor: Move all of Basic authentication logic into basic_auth module Move all of Basic authentication logic into basic_auth module Apr 18, 2024
Copy link
Collaborator

@joseluisq joseluisq left a comment

Choose a reason for hiding this comment

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

Thanks!

@joseluisq joseluisq merged commit 76531e6 into static-web-server:master Apr 18, 2024
24 checks passed
@palant palant deleted the separate-basic-auth branch April 18, 2024 22:33
@joseluisq joseluisq added this to the v2.30.0 milestone Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codebase Related to the project's source code enhancement New feature or request v2 v2 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants