aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/build.rs
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2023-05-22 15:47:06 -0700
committerbenj <benj@rse8.com>2023-05-22 15:47:06 -0700
commited34a5251f13bbded0aa15719887db4924b351eb (patch)
tree9719d805e915f4483d5db3e5e612e8b4cf5c702c /crates/secd/build.rs
parenteb92f823c31a5e702af7005231f0d6915aad3342 (diff)
downloadsecdiam-ed34a5251f13bbded0aa15719887db4924b351eb.tar
secdiam-ed34a5251f13bbded0aa15719887db4924b351eb.tar.gz
secdiam-ed34a5251f13bbded0aa15719887db4924b351eb.tar.bz2
secdiam-ed34a5251f13bbded0aa15719887db4924b351eb.tar.lz
secdiam-ed34a5251f13bbded0aa15719887db4924b351eb.tar.xz
secdiam-ed34a5251f13bbded0aa15719887db4924b351eb.tar.zst
secdiam-ed34a5251f13bbded0aa15719887db4924b351eb.zip
update credential API to include sessions
This change updates the credential API to include sessions as just another credential type. It adds the ApiToken type and enables revocation of credentials. Updates were also made to the Identity API which now includes a list of new credentials added to an Identity. This change also migrates off the hacky ENV configuration paradigm and includes a new config.toml file specified by the SECD_CONFIG_PATH env var. No default is currently provided. Clippy updates and code cleanup.
Diffstat (limited to 'crates/secd/build.rs')
-rw-r--r--crates/secd/build.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/secd/build.rs b/crates/secd/build.rs
index 8471105..e6f3362 100644
--- a/crates/secd/build.rs
+++ b/crates/secd/build.rs
@@ -8,7 +8,6 @@ fn main() {
let proto_files: Vec<PathBuf> = glob("proto/**/*.proto")
.unwrap()
- .into_iter()
.filter_map(Result::ok)
.collect();
@@ -22,7 +21,7 @@ fn main() {
tonic_build::configure()
.server_mod_attribute("attrs", "#[cfg(feature = \"server\")]")
.client_mod_attribute("attrs", "#[cfg(feature = \"client\")]")
- .file_descriptor_set_path(&descriptor_path)
+ .file_descriptor_set_path(descriptor_path)
.compile(&proto_files, &["proto"])
.unwrap();
}