mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-09-10 16:44:41 +08:00
Switch OOB SSO authentication for SSH to use the instructions instead of the name (#964)
Some SFTP clients (specifically WinSCP) truncate the name parameter for keyboard interactive login (WinSCP specifically puts it in the titlebar):  This PR changes the Warpgate authentication flow to use the keyboard interactive parameter for instructions for the primary instructions for SSO web-based auth, instead of the name. This results in the following UI for WinSCP:  Filezilla:  and OpenSSH:  Perhaps some changes to the wording may be in order (e.g. to prevent the duplication of 'Warpgate authentication' in OpenSSH and FileZilla, but I thought I would leave this PR as being as minimal as possible for the meantime.
This commit is contained in:
parent
47c943d201
commit
5551c33259
1 changed files with 2 additions and 2 deletions
|
@ -1360,7 +1360,8 @@ impl ServerSession {
|
|||
login_url.set_fragment(Some(&format!("/login/{auth_state_id}")));
|
||||
|
||||
russh::server::Auth::Partial {
|
||||
name: Cow::Owned(format!(
|
||||
name: Cow::Borrowed("Warpgate authentication"),
|
||||
instructions: Cow::Owned(format!(
|
||||
concat!(
|
||||
"-----------------------------------------------------------------------\n",
|
||||
"Warpgate authentication: please open the following URL in your browser:\n",
|
||||
|
@ -1375,7 +1376,6 @@ impl ServerSession {
|
|||
.collect::<Vec<_>>()
|
||||
.join(" ")
|
||||
)),
|
||||
instructions: Cow::Borrowed(""),
|
||||
prompts: Cow::Owned(vec![(Cow::Borrowed("Press Enter when done: "), true)]),
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue