diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-20 12:01:24 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-20 12:01:24 -0400 |
commit | ce48e85996f81a9a20846217bb5c150f7745b082 (patch) | |
tree | f4ca0ec8708710067ed890d1ed76432345a7bdf3 /src/server/tls.rs | |
parent | 4d50c25e0f4ae1f49b38a09c4870347f45a6b34f (diff) | |
download | teleterm-ce48e85996f81a9a20846217bb5c150f7745b082.tar.gz teleterm-ce48e85996f81a9a20846217bb5c150f7745b082.zip |
configure oauth through the config file too
Diffstat (limited to 'src/server/tls.rs')
-rw-r--r-- | src/server/tls.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/tls.rs b/src/server/tls.rs index a05608a..d8eb088 100644 --- a/src/server/tls.rs +++ b/src/server/tls.rs @@ -20,6 +20,10 @@ impl Server { allowed_login_methods: std::collections::HashSet< crate::protocol::AuthType, >, + oauth_configs: std::collections::HashMap< + crate::protocol::AuthType, + crate::oauth::Config, + >, ) -> Self { let (tls_sock_w, tls_sock_r) = tokio::sync::mpsc::channel(100); Self { @@ -28,6 +32,7 @@ impl Server { read_timeout, tls_sock_r, allowed_login_methods, + oauth_configs, ), sock_r, sock_w: tls_sock_w, |