Skip to main content

cloud_sdk/
authentication.rs

1//! Provider-neutral authentication scope and execution contracts.
2
3mod expiry;
4mod generation;
5mod policy;
6mod signing;
7mod transport;
8mod value;
9
10pub use expiry::{
11    CredentialLifetime, CredentialLifetimeError, CredentialLifetimeState, CredentialTimestamp,
12};
13pub use generation::{CredentialGeneration, CredentialGenerationError, RefreshHandoff};
14pub use policy::{
15    AuthenticationScope, AuthenticationScopeError, AuthenticationScopePolicy, ScopeField,
16    ScopeRequirement, ScopeViolation,
17};
18pub use signing::{
19    CanonicalSigningInput, MAX_CANONICAL_SIGNING_INPUT_BYTES, MAX_SIGNING_ALGORITHM_BYTES,
20    MAX_SIGNING_BODY_DIGEST_BYTES, MAX_SIGNING_DIGEST_ALGORITHM_BYTES, MAX_SIGNING_HEADERS,
21    MAX_SIGNING_KEY_ID_BYTES, MAX_SIGNING_NONCE_BYTES, RequestBodyHasher, RequestSigner,
22    SignedRequest, SigningAlgorithm, SigningBuildError, SigningContext, SigningContextValueError,
23    SigningDigestAlgorithm, SigningFreshness, SigningHeaders, SigningInputError, SigningKeyId,
24    SigningNonce, SigningOutputError, SigningValueError, UnixTime,
25};
26pub use transport::{
27    AsyncAuthenticatedTransport, AuthenticatedRequest, BlockingAuthenticatedTransport,
28    LocalAsyncAuthenticatedTransport, drive_async_authenticated, drive_local_authenticated,
29};
30pub use value::{MAX_SCOPE_VALUE_BYTES, ScopeValue, ScopeValueError};
31
32#[cfg(test)]
33mod tests;