Skip to main content

cloud_sdk/
authentication.rs

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