mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
Merge pull request #7425 from roberthbailey/basic-auth-headers
Set the 'WWW-Authenticate' header on 401 responses when basic auth is enabled
This commit is contained in:
@@ -307,6 +307,7 @@ func (s *APIServer) Run(_ []string) error {
|
||||
ReadWritePort: s.SecurePort,
|
||||
PublicAddress: net.IP(s.BindAddress),
|
||||
Authenticator: authenticator,
|
||||
SupportsBasicAuth: len(s.BasicAuthFile) > 0,
|
||||
Authorizer: authorizer,
|
||||
AdmissionControl: admissionController,
|
||||
DisableV1Beta3: disableV1beta3,
|
||||
|
Reference in New Issue
Block a user