diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-26 11:50:06 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-26 11:50:06 -0500 |
commit | 0ecea0fde96ac0409f346511f1c8108e1aa73078 (patch) | |
tree | fee8e1167ad61d46e942bfec3e03bf77413e5603 /teleterm-web/src/config.rs | |
parent | 1beada71234ff83d92e6e620edbfab4dcb760df5 (diff) | |
download | teleterm-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.rs | 4 |
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 { |