let update.py add information of oauth2-authorizer

This commit is contained in:
B. Petersen
2020-06-19 16:37:43 +02:00
parent b6c0f44608
commit b91b88e11b
2 changed files with 17 additions and 5 deletions

View File

@@ -35,6 +35,13 @@ pub enum UsernamePattern {
EMAILLOCALPART = 2,
}
#[derive(Debug, PartialEq)]
#[repr(u8)]
pub enum Oauth2Authorizer {
Yandex = 1,
Gmail = 2,
}
#[derive(Debug)]
pub struct Server {
pub protocol: Protocol,
@@ -73,6 +80,7 @@ pub struct Provider {
pub server: Vec<Server>,
pub config_defaults: Option<Vec<ConfigDefault>>,
pub strict_tls: bool,
pub oauth2_authorizer: Option<Oauth2Authorizer>,
}
impl Provider {