mcp-auth-proxy
mcp-auth-proxy copied to clipboard
feat: allow custom auth HTML templates
Summary
Adds an auth template override directory so deployments can customize the HTML auth pages without rebuilding the binary or forking embedded templates. The new --auth-template-dir / AUTH_TEMPLATE_DIR setting loads matching login.html, unauthorized.html, error.html, and optional styles.html files from a mounted directory, while falling back to embedded defaults for missing files.
Type of Change
- [x] feat: A new feature
- [ ] fix: A bug fix
- [ ] docs: Documentation only changes
- [ ] style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- [ ] refactor: A code change that neither fixes a bug nor adds a feature
- [ ] perf: A code change that improves performance
- [x] test: Adding missing tests or correcting existing tests
- [ ] build: Changes that affect the build system or external dependencies
- [ ] ci: Changes to our CI configuration files and scripts
- [ ] chore: Other changes that do not modify src or test files
- [ ] revert: Reverts a previous commit
Related Issues
Codecov Report
:x: Patch coverage is 96.22642% with 2 lines in your changes missing coverage. Please review.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| pkg/auth/auth.go | 95.91% | 1 Missing and 1 partial :warning: |
:loudspeaker: Thoughts on this report? Let us know!