You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add constants for auth strategy types
Replace magic strings with constants in vMCP auth system
to improve type safety and prevent typos. This makes the
code more maintainable and refactoring easier.
Strategy type constants (StrategyTypeHeaderInjection,
StrategyTypeUnauthenticated) and metadata key constants
(MetadataHeaderName, MetadataHeaderValue) are now defined
in pkg/vmcp/auth/strategies/constants.go.
Fixes#2466
* Replace remaining magic strings with constants in auth system
Address review feedback by replacing magic strings in:
- pkg/vmcp/auth/factory/outgoing.go: Use strategy type constants
- pkg/vmcp/config/validator.go: Use strategy type and metadata constants
Co-authored-by: Juan Antonio Osorio <JAORMX@users.noreply.github.com>
---------
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Juan Antonio Osorio <JAORMX@users.noreply.github.com>
0 commit comments