diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-19 12:10:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-19 12:10:48 +0200 |
commit | c7f767b7d2877cdbbc06893c9cd0fae2c56b96f2 (patch) | |
tree | 0fe8afca226ff90dd0fd20985d8216fdb30c8146 /src/login/ldap_provider.rs | |
parent | 8bd59a8f836d39f89d7e064928949034bec093de (diff) | |
download | aerogramme-c7f767b7d2877cdbbc06893c9cd0fae2c56b96f2.tar.gz aerogramme-c7f767b7d2877cdbbc06893c9cd0fae2c56b96f2.zip |
More construction of things
Diffstat (limited to 'src/login/ldap_provider.rs')
-rw-r--r-- | src/login/ldap_provider.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/login/ldap_provider.rs b/src/login/ldap_provider.rs new file mode 100644 index 0000000..ebe2771 --- /dev/null +++ b/src/login/ldap_provider.rs @@ -0,0 +1,22 @@ +use anyhow::Result; +use async_trait::async_trait; + +use crate::config::*; +use crate::login::*; + +pub struct LdapLoginProvider { + // TODO +} + +impl LdapLoginProvider { + pub fn new(config: LoginLdapConfig) -> Result<Self> { + unimplemented!() + } +} + +#[async_trait] +impl LoginProvider for LdapLoginProvider { + async fn login(&self, username: &str, password: &str) -> Result<Credentials> { + unimplemented!() + } +} |