Skip to content

Commit

Permalink
Switch OOB SSO authentication for SSH to use the instructions instead…
Browse files Browse the repository at this point in the history
… of the name for greater compatability
  • Loading branch information
SheaSmith authored Mar 11, 2024
1 parent 65f0056 commit 9b62e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warpgate-protocol-ssh/src/server/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -1375,7 +1376,6 @@ impl ServerSession {
.collect::<Vec<_>>()
.join(" ")
)),
instructions: Cow::Borrowed(""),
prompts: Cow::Owned(vec![(Cow::Borrowed("Press Enter when done: "), true)]),
}
} else {
Expand Down

0 comments on commit 9b62e43

Please sign in to comment.