mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +02:00
send empty methods list for final deny response
This commit is contained in:
parent
f794c6e7f3
commit
9d23532bd1
1 changed files with 1 additions and 9 deletions
|
@ -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{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue