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/cmd/server.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/cmd/server.rs')
-rw-r--r-- | teleterm/src/cmd/server.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/teleterm/src/cmd/server.rs b/teleterm/src/cmd/server.rs index 7eff187..25571dc 100644 --- a/teleterm/src/cmd/server.rs +++ b/teleterm/src/cmd/server.rs @@ -13,7 +13,10 @@ pub struct Config { )] oauth_configs: std::collections::HashMap< crate::protocol::AuthType, - crate::oauth::Config, + std::collections::HashMap< + crate::protocol::AuthClient, + crate::oauth::Config, + >, >, } @@ -76,7 +79,10 @@ fn create_server( >, oauth_configs: std::collections::HashMap< crate::protocol::AuthType, - crate::oauth::Config, + std::collections::HashMap< + crate::protocol::AuthClient, + crate::oauth::Config, + >, >, uid: Option<users::uid_t>, gid: Option<users::gid_t>, @@ -106,7 +112,10 @@ fn create_server_tls( >, oauth_configs: std::collections::HashMap< crate::protocol::AuthType, - crate::oauth::Config, + std::collections::HashMap< + crate::protocol::AuthClient, + crate::oauth::Config, + >, >, uid: Option<users::uid_t>, gid: Option<users::gid_t>, |