Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | enable backtraces for makefile-run commandsHEADmaster | Jesse Luehrs | 2019-12-18 | 1 | -4/+4 |
| | |||||
* | just return a future from the handler function | Jesse Luehrs | 2019-12-18 | 1 | -27/+51 |
| | |||||
* | add a few more makefile targets | Jesse Luehrs | 2019-12-18 | 1 | -0/+8 |
| | |||||
* | make the oauth client a struct instead of a trait | Jesse Luehrs | 2019-12-18 | 8 | -171/+182 |
| | |||||
* | move client id file manipulation out of oauth | Jesse Luehrs | 2019-12-16 | 4 | -42/+41 |
| | | | | it doesn't actually have anything to do with the oauth flow | ||||
* | bump seed | Jesse Luehrs | 2019-12-07 | 5 | -8/+13 |
| | |||||
* | bump oauth2 | Jesse Luehrs | 2019-12-07 | 3 | -39/+18 |
| | |||||
* | bump deps | Jesse Luehrs | 2019-12-07 | 5 | -143/+172 |
| | |||||
* | simplify | Jesse Luehrs | 2019-11-28 | 1 | -6/+6 |
| | |||||
* | fix confusing type signature | Jesse Luehrs | 2019-11-28 | 3 | -4/+4 |
| | |||||
* | simplify | Jesse Luehrs | 2019-11-27 | 1 | -17/+19 |
| | |||||
* | refactor a bit | Jesse Luehrs | 2019-11-27 | 2 | -84/+132 |
| | |||||
* | pull auth_client out into its own field | Jesse Luehrs | 2019-11-27 | 7 | -36/+61 |
| | | | | | | 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 work | Jesse Luehrs | 2019-11-27 | 4 | -150/+81 |
| | | | | | | | 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. | ||||
* | better error messages | Jesse Luehrs | 2019-11-27 | 2 | -2/+20 |
| | |||||
* | make the oauth methods return both tokens | Jesse Luehrs | 2019-11-27 | 2 | -10/+14 |
| | |||||
* | add oauth endpoint | Jesse Luehrs | 2019-11-27 | 2 | -0/+62 |
| | | | | no functionality yet | ||||
* | implement logging in with the oauth tokens on the server side | Jesse Luehrs | 2019-11-27 | 2 | -10/+83 |
| | |||||
* | fix method name | Jesse Luehrs | 2019-11-27 | 1 | -2/+2 |
| | |||||
* | actually, the token response needs to send both tokens | Jesse Luehrs | 2019-11-27 | 1 | -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 | ||||
* | simplify | Jesse Luehrs | 2019-11-27 | 5 | -26/+8 |
| | |||||
* | calculate the redirect_url for web oauth too | Jesse Luehrs | 2019-11-27 | 4 | -21/+37 |
| | | | | | a bit more complicated because it needs to use the configured public_address, etc | ||||
* | make the web client use raw clients for everything | Jesse Luehrs | 2019-11-27 | 2 | -22/+20 |
| | |||||
* | the server doesn't need to know about the web oauth configs | Jesse Luehrs | 2019-11-27 | 3 | -39/+24 |
| | |||||
* | split oauth_response into two different messages | Jesse Luehrs | 2019-11-27 | 3 | -14/+39 |
| | | | | | | | | | | 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) | ||||
* | fix error message | Jesse Luehrs | 2019-11-26 | 1 | -4/+1 |
| | |||||
* | make plain logins also hit the server | Jesse Luehrs | 2019-11-26 | 1 | -5/+129 |
| | | | | this also provides a foundation for how to handle oauth logins | ||||
* | read the oauth method configs in the webface | Jesse Luehrs | 2019-11-26 | 6 | -2/+61 |
| | | | | the oauth login link doesn't work yet, but the ui works at least | ||||
* | store more information about the login state | Jesse Luehrs | 2019-11-26 | 5 | -9/+20 |
| | | | | | | 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) | ||||
* | simplify oauth url handling | Jesse Luehrs | 2019-11-26 | 2 | -15/+22 |
| | |||||
* | rename this struct | Jesse Luehrs | 2019-11-26 | 1 | -5/+5 |
| | |||||
* | allow creating raw clients that don't handle the login process | Jesse Luehrs | 2019-11-26 | 1 | -37/+77 |
| | | | | | so that frontends that want to handle logins themselves can still have the client handle the connection process | ||||
* | pass oauth login urls along to the browser | Jesse Luehrs | 2019-11-26 | 4 | -11/+89 |
| | |||||
* | allow multiple oauth configurations using the same auth type | Jesse Luehrs | 2019-11-26 | 11 | -70/+225 |
| | | | | | this should allow us to configure a separate oauth application for tt web than normal (since the redirect_url needs to be different) | ||||
* | add a logout button | Jesse Luehrs | 2019-11-26 | 7 | -1/+39 |
| | |||||
* | allow configuring the allowed login methods for the web server | Jesse Luehrs | 2019-11-26 | 4 | -1/+37 |
| | |||||
* | remove title from webconfig | Jesse Luehrs | 2019-11-26 | 6 | -11/+2 |
| | | | | this was only temporary to prove the webconfig stuff worked | ||||
* | style | Jesse Luehrs | 2019-11-26 | 1 | -3/+1 |
| | |||||
* | use the correct username to log in on the server side | Jesse Luehrs | 2019-11-25 | 2 | -10/+11 |
| | | | | now that we're persisting it properly | ||||
* | also build the wasm with -Oz | Jesse Luehrs | 2019-11-25 | 3 | -1/+2 |
| | |||||
* | remove a format! call | Jesse Luehrs | 2019-11-25 | 3 | -2/+2 |
| | | | | apparently they are expensive (in code size) | ||||
* | move value extraction logic into the view | Jesse Luehrs | 2019-11-25 | 5 | -9/+11 |
| | | | | since it depends more on the structure of the rendered page | ||||
* | make logins persistent | Jesse Luehrs | 2019-11-25 | 10 | -18/+97 |
| | | | | so if the server knows we're logged in, don't show the login page | ||||
* | autofocus the username text box | Jesse Luehrs | 2019-11-25 | 3 | -4/+6 |
| | |||||
* | a bit more refactoring | Jesse Luehrs | 2019-11-25 | 4 | -16/+26 |
| | |||||
* | add a basic login screen | Jesse Luehrs | 2019-11-24 | 4 | -4/+13 |
| | |||||
* | simplify the update logic a bit | Jesse Luehrs | 2019-11-24 | 4 | -47/+42 |
| | |||||
* | refactor | Jesse Luehrs | 2019-11-24 | 3 | -22/+47 |
| | |||||
* | start working on the login flow | Jesse Luehrs | 2019-11-23 | 12 | -3/+205 |
| | |||||
* | declare a character encoding | Jesse Luehrs | 2019-11-23 | 1 | -0/+1 |
| |