aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm/src/protocol.rs
Commit message (Collapse)AuthorAgeFilesLines
* refactor a bitJesse Luehrs2019-11-271-0/+16
|
* pull auth_client out into its own fieldJesse Luehrs2019-11-271-25/+18
| | | | | | it doesn't hurt anything even though it's not super necessary for plain logins, and it's more convenient to access without needing to deconstruct the enum value
* rethink how oauth logins need to workJesse Luehrs2019-11-271-50/+55
| | | | | | | i can't exchange refresh tokens for access tokens without knowing the webface oauth configuration either, so this strategy also won't work. the server actually needs to only receive access tokens, and request the web server to refresh them as needed.
* actually, the token response needs to send both tokensJesse Luehrs2019-11-271-7/+23
| | | | | | the server needs the access token to use for the current login process, but it'll also need to store the refresh token so that it doesn't need to re-login afterwards
* split oauth_response into two different messagesJesse Luehrs2019-11-271-11/+36
| | | | | | | | | | 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)
* store more information about the login stateJesse Luehrs2019-11-261-1/+3
| | | | | | we need to know both who we are (so that the webface can display it) and also how to log back in as that user (since oauth methods log back in without specifying the username at all)
* pass oauth login urls along to the browserJesse Luehrs2019-11-261-0/+20
|
* allow multiple oauth configurations using the same auth typeJesse Luehrs2019-11-261-9/+87
| | | | | this should allow us to configure a separate oauth application for tt web than normal (since the redirect_url needs to be different)
* allow configuring the allowed login methods for the web serverJesse Luehrs2019-11-261-1/+1
|
* send terminal output messages back to the web pageJesse Luehrs2019-11-221-2/+2
|
* make it return jsonJesse Luehrs2019-11-211-1/+1
|
* shorter namesJesse Luehrs2019-11-161-6/+4
|
* use workspacesJesse Luehrs2019-11-151-0/+947