Skip to main content

Module auth

Module auth 

Source
Expand description

Token acquisition — strategies that produce a ServiceToken.

Use AuthStrategy as the consumer-facing trait (e.g. when wiring strategies into cipherstash-client). AuthStrategyFn is the closure-shaped impl for callers that source tokens externally (FFI, custom IPC).

For the persistence layer — pluggable storage that slots into an existing strategy — see crate::store.

All items in this module are also re-exported at the crate root.

Re-exports§

pub use crate::AccessKey;
pub use crate::AccessKeyStrategy;
pub use crate::AccessKeyStrategyBuilder;
pub use crate::AuthError;
pub use crate::AuthStrategy;
pub use crate::AuthStrategyFn;
pub use crate::AutoStrategy;
pub use crate::AutoStrategyBuilder;
pub use crate::InvalidAccessKey;
pub use crate::OAuthStrategy;
pub use crate::OAuthStrategyBuilder;
pub use crate::SecretToken;
pub use crate::ServiceToken;
pub use crate::bind_client_device;
pub use crate::DeviceClientError;
pub use crate::DeviceCodeStrategy;
pub use crate::DeviceCodeStrategyBuilder;
pub use crate::PendingDeviceCode;

Structs§

DeviceIdentity
Persistent identity for a CLI installation.