mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-01 11:26:29 +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
|
// XXX: do we want to send an equivalent to the "show error details" output
|
||||||
// in the case of a deny result?
|
// 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{
|
return &extensions_ssh.ServerMessage{
|
||||||
Message: &extensions_ssh.ServerMessage_AuthResponse{
|
Message: &extensions_ssh.ServerMessage_AuthResponse{
|
||||||
AuthResponse: &extensions_ssh.AuthenticationResponse{
|
AuthResponse: &extensions_ssh.AuthenticationResponse{
|
||||||
Response: &extensions_ssh.AuthenticationResponse_Deny{
|
Response: &extensions_ssh.AuthenticationResponse_Deny{
|
||||||
Deny: &extensions_ssh.DenyResponse{
|
Deny: &extensions_ssh.DenyResponse{},
|
||||||
Methods: methods,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue