From 5f1d07a62baa4b00208f1e251624876275a1fb63 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 27 Nov 2019 01:29:25 -0500 Subject: 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) --- teleterm/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'teleterm/src/client.rs') 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 return Err(Error::ParseHttpRequestMissingCode); }; Ok(( - crate::protocol::Message::oauth_response(&code), + crate::protocol::Message::oauth_response_code(&code), lines.into_inner().into_inner(), )) }) -- cgit v1.2.3-54-g00ecf