aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm-web/src/protocol.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-26 11:50:06 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-26 11:50:06 -0500
commit0ecea0fde96ac0409f346511f1c8108e1aa73078 (patch)
treefee8e1167ad61d46e942bfec3e03bf77413e5603 /teleterm-web/src/protocol.rs
parent1beada71234ff83d92e6e620edbfab4dcb760df5 (diff)
downloadteleterm-0ecea0fde96ac0409f346511f1c8108e1aa73078.tar.gz
teleterm-0ecea0fde96ac0409f346511f1c8108e1aa73078.zip
read the oauth method configs in the webface
the oauth login link doesn't work yet, but the ui works at least
Diffstat (limited to 'teleterm-web/src/protocol.rs')
-rw-r--r--teleterm-web/src/protocol.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/teleterm-web/src/protocol.rs b/teleterm-web/src/protocol.rs
index 7b12f5e..afcfad1 100644
--- a/teleterm-web/src/protocol.rs
+++ b/teleterm-web/src/protocol.rs
@@ -1,6 +1,13 @@
// it's possible we should just consider pulling the real protocol out into a
// crate or something? but ideally in a way that doesn't require pulling in
// tokio
+
+#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, serde::Deserialize)]
+pub enum AuthType {
+ Plain,
+ RecurseCenter,
+}
+
#[derive(Clone, Debug, serde::Deserialize)]
pub(crate) enum Message {
TerminalOutput { data: Vec<u8> },