Skip to main content

cloud_sdk/
authentication.rs

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