aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/tls.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-20 12:01:24 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-20 12:01:24 -0400
commitce48e85996f81a9a20846217bb5c150f7745b082 (patch)
treef4ca0ec8708710067ed890d1ed76432345a7bdf3 /src/server/tls.rs
parent4d50c25e0f4ae1f49b38a09c4870347f45a6b34f (diff)
downloadteleterm-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.rs5
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,