hunk.code_window: 	}
   	return handler.writeToken(w, user)
   }
   func (handler *Handler) authenticateInternal(w http.ResponseWriter, user *portainer.User, password string) *httperror.HandlerError {
  
hunk.labels: keep keep replace keep keep keep
hunk.after_edit: 	return &httperror.HandlerError{http.StatusUnprocessableEntity, "Login method is not supported", httperrors.ErrUnauthorized}
   }
   func isUserInitialAdmin(user *portainer.User) bool {
   	return int(user.ID) == 1
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: import angular from 'angular';
  
  angular.module('portainer.kubernetes').factory('KubernetesConfig', KubernetesConfigFactory);
  
  /* @ngInject */
  function KubernetesConfigFactory($http, EndpointProvider, API_ENDPOINT_KUBERNETES) {
    return { get };
  
    async function get(environmentIDs) {
      return $http({
        method: 'GET',
        url: `${API_ENDPOINT_KUBERNETES}/config`,
        params: { ids: environmentIDs.map((x) => parseInt(x)) },
        responseType: 'blob',
        headers: {
          Accept: 'text/yaml',
        },
      });
    }
  }
  