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 binding;
7mod expiry;
8mod generation;
9mod policy;
10mod signing;
11mod transport;
12mod value;
13
14pub use attempt::{
15    CredentialAttempt, CredentialAttemptError, CredentialAttemptGeneration,
16    CredentialAttemptStatus, CredentialReconfirmation, SharedCredentialAttemptState,
17};
18#[cfg(feature = "alloc")]
19pub use attempt_owned::{OwnedCredentialAttempt, OwnedCredentialAttemptState};
20pub use binding::{
21    BoundCredentialTransport, CREDENTIAL_BINDING_BYTES, CredentialBinding, CredentialBindingError,
22};
23pub use expiry::{
24    CredentialLifetime, CredentialLifetimeError, CredentialLifetimeState, CredentialTimestamp,
25};
26pub use generation::{CredentialGeneration, CredentialGenerationError, RefreshHandoff};
27pub use policy::{
28    AuthenticationScope, AuthenticationScopeError, AuthenticationScopePolicy, ScopeField,
29    ScopeRequirement, ScopeViolation,
30};
31pub use signing::{
32    CanonicalSigningInput, MAX_CANONICAL_SIGNING_INPUT_BYTES, MAX_SIGNING_ALGORITHM_BYTES,
33    MAX_SIGNING_BODY_DIGEST_BYTES, MAX_SIGNING_DIGEST_ALGORITHM_BYTES, MAX_SIGNING_HEADERS,
34    MAX_SIGNING_KEY_ID_BYTES, MAX_SIGNING_NONCE_BYTES, RequestBodyHasher, RequestSigner,
35    SignedRequest, SigningAlgorithm, SigningBuildError, SigningContext, SigningContextValueError,
36    SigningDigestAlgorithm, SigningFreshness, SigningHeaders, SigningInputError, SigningKeyId,
37    SigningNonce, SigningOutputError, SigningValueError, UnixTime,
38};
39pub use transport::{
40    AsyncAuthenticatedTransport, AuthenticatedRequest, BlockingAuthenticatedTransport,
41    LocalAsyncAuthenticatedTransport, drive_async_authenticated, drive_local_authenticated,
42};
43pub use value::{MAX_SCOPE_VALUE_BYTES, ScopeValue, ScopeValueError};
44
45#[cfg(test)]
46mod tests;