aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm/src/client.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-27 01:29:25 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-27 01:29:25 -0500
commit5f1d07a62baa4b00208f1e251624876275a1fb63 (patch)
tree197cdba853d220d635389e395ce3e47e9d82bb7b /teleterm/src/client.rs
parenteeeb378d50b81324a48ace05efe246bc34bbc292 (diff)
downloadteleterm-5f1d07a62baa4b00208f1e251624876275a1fb63.tar.gz
teleterm-5f1d07a62baa4b00208f1e251624876275a1fb63.zip
split oauth_response into two different messages
the local client needs to receive the code and send it directly to the server, which handles the rest of the oauth flow (because the client doesn't have the server's oauth configuration, so it can't do the exchange itself), but the web client needs to receive the code and exchange it for a token and send that token to the server (because the server doesn't have the web server's oauth configuration, so it can't do the exchange itself)
Diffstat (limited to 'teleterm/src/client.rs')
-rw-r--r--teleterm/src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/teleterm/src/client.rs b/teleterm/src/client.rs
index 2eae185..473cb9b 100644
--- a/teleterm/src/client.rs
+++ b/teleterm/src/client.rs
@@ -373,7 +373,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static>
return Err(Error::ParseHttpRequestMissingCode);
};
Ok((
- crate::protocol::Message::oauth_response(&code),
+ crate::protocol::Message::oauth_response_code(&code),
lines.into_inner().into_inner(),
))
})