Build a chain from an ordered list of authenticators. Earlier entries are evaluated first.
(authenticators: Vec<Arc<dyn Authenticator>>)
| 60 | /// Build a chain from an ordered list of authenticators. Earlier |
| 61 | /// entries are evaluated first. |
| 62 | pub fn new(authenticators: Vec<Arc<dyn Authenticator>>) -> Self { |
| 63 | Self { |
| 64 | authenticators: Arc::from(authenticators), |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | /// Run the chain. Returns the first principal produced. If every |
| 69 | /// authenticator returns `Ok(None)`, the result is `Ok(None)` — the |
nothing calls this directly
no outgoing calls
no test coverage detected