Add peer card discovery scaffold
This commit is contained in:
parent
cf5a405276
commit
81149605bc
11 changed files with 271 additions and 15 deletions
|
|
@ -71,6 +71,18 @@ impl AuthExplanation {
|
|||
evaluated_ops: 0,
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn discovered_candidate(subject: String, resource: String, capability: String) -> Self {
|
||||
Self {
|
||||
subject,
|
||||
resource,
|
||||
capability,
|
||||
allowed: false,
|
||||
reason: "subject is a discovered peer candidate only; discovery does not grant trust or authorization".to_owned(),
|
||||
evaluated_ops: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue