oauth2-proxy/docs
Sparsh 812ece9471
feat: Add domain-based matching to skip-auth-route
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>
2025-10-07 21:28:02 +05:30
..
docs feat: Add domain-based matching to skip-auth-route 2025-10-07 21:28:02 +05:30
src/css Microsoft Entra ID provider (#2390) 2024-12-31 11:46:13 +00:00
static doc: readme overhaul and azure sponsorship (#2826) 2024-10-27 12:12:46 +00:00
versioned_docs doc: SourceHut documentation fixes (#3170) 2025-08-20 12:02:32 +02:00
versioned_sidebars doc: SourceHut documentation fixes (#3170) 2025-08-20 12:02:32 +02:00
.gitignore docs: restructure all options and flags (#2747) 2024-08-20 10:40:27 +02:00
README.md doc: SourceHut documentation fixes (#3170) 2025-08-20 12:02:32 +02:00
babel.config.js Migrate existing documentation to Docusaurus 2020-11-05 15:36:27 +00:00
docusaurus.config.js docs: fix insecure Caddy configuration example (#2827) 2024-11-11 10:04:04 +01:00
package.json chore(deps): update dependency @easyops-cn/docusaurus-search-local to ^0.52.0 (#3131) 2025-07-20 11:07:35 +02:00
sidebars.js doc: SourceHut documentation fixes (#3170) 2025-08-20 12:02:32 +02:00
versions.json add new docs version 7.12.x 2025-08-19 08:42:18 +02:00

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.