aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm-web/src/config.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-26 11:50:06 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-26 11:50:06 -0500
commit0ecea0fde96ac0409f346511f1c8108e1aa73078 (patch)
treefee8e1167ad61d46e942bfec3e03bf77413e5603 /teleterm-web/src/config.rs
parent1beada71234ff83d92e6e620edbfab4dcb760df5 (diff)
downloadteleterm-0ecea0fde96ac0409f346511f1c8108e1aa73078.tar.gz
teleterm-0ecea0fde96ac0409f346511f1c8108e1aa73078.zip
read the oauth method configs in the webface
the oauth login link doesn't work yet, but the ui works at least
Diffstat (limited to 'teleterm-web/src/config.rs')
-rw-r--r--teleterm-web/src/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/teleterm-web/src/config.rs b/teleterm-web/src/config.rs
index 70aa64a..3c8e03b 100644
--- a/teleterm-web/src/config.rs
+++ b/teleterm-web/src/config.rs
@@ -10,6 +10,10 @@ extern "C" {
pub(crate) struct Config {
pub(crate) username: Option<String>,
pub(crate) public_address: String,
+ pub(crate) allowed_login_methods:
+ std::collections::HashSet<crate::protocol::AuthType>,
+ pub(crate) oauth_login_urls:
+ std::collections::HashMap<crate::protocol::AuthType, String>,
}
impl Config {