aboutsummaryrefslogtreecommitdiff
path: root/src/login/static_provider.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 15:09:39 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 15:09:39 +0100
commita7c9d554f6523c384cc0a14a789e0c8d9070e605 (patch)
tree8c3e84cd0d20552e917ac5eae162323425e90a90 /src/login/static_provider.rs
parent6e8b2cfc9ff1abf2b4844884d9ebd807d37bd76e (diff)
downloadaerogramme-a7c9d554f6523c384cc0a14a789e0c8d9070e605.tar.gz
aerogramme-a7c9d554f6523c384cc0a14a789e0c8d9070e605.zip
fix login mod
Diffstat (limited to 'src/login/static_provider.rs')
-rw-r--r--src/login/static_provider.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/login/static_provider.rs b/src/login/static_provider.rs
index d013c6f..0e86cff 100644
--- a/src/login/static_provider.rs
+++ b/src/login/static_provider.rs
@@ -51,31 +51,12 @@ impl LoginProvider for StaticLoginProvider {
bail!("Wrong password");
}
- /*
- tracing::debug!(user=%username, "fetch bucket");
- let bucket = user
- .bucket
- .clone()
- .or_else(|| self.default_bucket.clone())
- .ok_or(anyhow!(
- "No bucket configured and no default bucket specified"
- ))?;*/
-
tracing::debug!(user=%username, "fetch keys");
let storage: storage::Builders = match user.storage {
StaticStorage::InMemory => Box::new(storage::in_memory::FullMem {}),
StaticStorage::Garage(c) => Box::new(storage::garage::GrgCreds {}),
};
- /*
- StorageCredentials {
- k2v_region: self.k2v_region.clone(),
- s3_region: self.s3_region.clone(),
- aws_access_key_id: user.aws_access_key_id.clone(),
- aws_secret_access_key: user.aws_secret_access_key.clone(),
- bucket,
- };*/
-
let keys = match (&user.master_key, &user.secret_key) {
(Some(m), Some(s)) => {
let master_key =