diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-26 04:20:43 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-26 04:20:43 -0500 |
commit | ea8beb985247aac4345ecefc8ec551f52f5f1a24 (patch) | |
tree | 7288af40b291e03252cfca7bb4654b63181776ed /teleterm/src/oauth.rs | |
parent | cc5a3f9056fe1b563dbb40d51b1621769150c08d (diff) | |
download | teleterm-ea8beb985247aac4345ecefc8ec551f52f5f1a24.tar.gz teleterm-ea8beb985247aac4345ecefc8ec551f52f5f1a24.zip |
allow multiple oauth configurations using the same auth type
this should allow us to configure a separate oauth application for tt
web than normal (since the redirect_url needs to be different)
Diffstat (limited to 'teleterm/src/oauth.rs')
-rw-r--r-- | teleterm/src/oauth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/teleterm/src/oauth.rs b/teleterm/src/oauth.rs index 680b6f4..5283957 100644 --- a/teleterm/src/oauth.rs +++ b/teleterm/src/oauth.rs @@ -6,7 +6,7 @@ mod recurse_center; pub use recurse_center::RecurseCenter; // this needs to be fixed because we listen for it in a hardcoded place -pub const REDIRECT_URL: &str = "http://localhost:44141/oauth"; +pub const CLI_REDIRECT_URL: &str = "http://localhost:44141/oauth"; pub trait Oauth { fn client(&self) -> &oauth2::basic::BasicClient; |