Add support for domain-based authentication bypass using the --skip-auth-route flag with domain=regex syntax. This allows users to skip authentication for specific domains or domain patterns. Changes: - Extended allowedRoute struct to support domain regex matching - Added domain=regex pattern parsing in buildRoutesAllowlist - Implemented isAllowedDomain function for domain validation - Updated validation logic to handle domain-based routes - Domain matching uses Host header (or X-Forwarded-Host) - Domain rules work alongside existing method and path rules Example usage: --skip-auth-route=domain=api\.example\.com --skip-auth-route=domain=.*\.subdomain\.com Testing: - Added unit tests for domain pattern parsing - Added integration tests with 7 test scenarios - Verified exact domain matching and wildcard patterns - Confirmed non-matching domains are properly denied Signed-off-by: Sparsh <sparsh.raj30@gmail.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| src/css | ||
| static | ||
| versioned_docs | ||
| versioned_sidebars | ||
| .gitignore | ||
| README.md | ||
| babel.config.js | ||
| docusaurus.config.js | ||
| package.json | ||
| sidebars.js | ||
| versions.json | ||
README.md
Website
This website is built using Docusaurus 2, a modern static website generator.
Installation
npm install
Local Development
npm start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
Build
npm run build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
GIT_USER=<Your GitHub username> USE_SSH=true npm deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.