Skip to content

Commit 955a8c2

Browse files
committed
Remove organizations since APIs don't support querying for user emails without authentication
1 parent 0223fc7 commit 955a8c2

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ users = [
99
{ name = "rdavis", principals = ["rdavis@acme.corp"], sources = ["acme-corp"] },
1010
{ name = "pbrock", principals = ["pbrock@acme.corp"], sources = ["acme-corp"] }
1111
]
12-
organizations = [
13-
{ name = "rust-lang", sources = ["github"] }
14-
]
1512
local = [
1613
"jdoe@example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHDGMF+tZQL3dcr1arPst+YP8v33Is0kAJVvyTKrxMw"
1714
]

src/config.rs

-14
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use std::{
1414
pub struct Config {
1515
allowed_signers: Option<PathBuf>,
1616
users: Option<Vec<User>>,
17-
organizations: Option<Vec<Organization>>,
1817
local: Option<Vec<String>>,
1918
sources: Option<Vec<Source>>,
2019
}
@@ -26,7 +25,6 @@ impl Default for Config {
2625
Config {
2726
allowed_signers: git_allowed_signers(),
2827
users: None,
29-
organizations: None,
3028
local: None,
3129
sources: Some(vec![
3230
Source {
@@ -98,12 +96,6 @@ struct User {
9896
sources: Vec<String>,
9997
}
10098

101-
#[derive(Debug, Deserialize, Serialize, PartialEq)]
102-
struct Organization {
103-
name: String,
104-
sources: Vec<String>,
105-
}
106-
10799
#[derive(Debug, Deserialize, Serialize, PartialEq)]
108100
struct Source {
109101
name: String,
@@ -177,12 +169,6 @@ mod tests {
177169
sources: vec!["acme-corp".to_string()],
178170
},
179171
]),
180-
organizations: Some(vec![
181-
Organization {
182-
name: "rust-lang".to_string(),
183-
sources: vec!["github".to_string()],
184-
}
185-
]),
186172
local: Some(vec!["jdoe@example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHDGMF+tZQL3dcr1arPst+YP8v33Is0kAJVvyTKrxMw".parse().unwrap()]),
187173
sources: Some(vec![
188174
Source {

0 commit comments

Comments
 (0)