diff --git a/authorize/ssh_grpc.go b/authorize/ssh_grpc.go index 6a9647122..545464d84 100644 --- a/authorize/ssh_grpc.go +++ b/authorize/ssh_grpc.go @@ -617,19 +617,11 @@ func handleEvaluatorResponseForSSH( // XXX: do we want to send an equivalent to the "show error details" output // in the case of a deny result? - // XXX: this is not quite right -- needs to exactly match the last list of methods - methods := []string{"publickey"} - if slices.Contains(state.MethodsAuthenticated, "keyboard-interactive") { - methods = append(methods, "keyboard-interactive") - } - return &extensions_ssh.ServerMessage{ Message: &extensions_ssh.ServerMessage_AuthResponse{ AuthResponse: &extensions_ssh.AuthenticationResponse{ Response: &extensions_ssh.AuthenticationResponse_Deny{ - Deny: &extensions_ssh.DenyResponse{ - Methods: methods, - }, + Deny: &extensions_ssh.DenyResponse{}, }, }, },