+3
crates/atproto-client/src/client.rs
+3
crates/atproto-client/src/client.rs
···
17
17
///
18
18
/// Contains the private key for DPoP proof generation and OAuth access token
19
19
/// for Authorization header.
20
+
#[derive(Clone)]
20
21
pub struct DPoPAuth {
21
22
/// Private key data for generating DPoP proof tokens
22
23
pub dpop_private_key_data: KeyData,
···
27
28
/// App password authentication credentials for authenticated HTTP requests.
28
29
///
29
30
/// Contains the JWT access token for Bearer token authentication.
31
+
#[derive(Clone)]
30
32
pub struct AppPasswordAuth {
31
33
/// JWT access token for the Authorization header
32
34
pub access_token: String,
···
36
38
///
37
39
/// Supports multiple authentication schemes including unauthenticated requests,
38
40
/// DPoP (Demonstration of Proof-of-Possession) tokens, and app password bearer tokens.
41
+
#[derive(Clone)]
39
42
pub enum Auth {
40
43
/// No authentication - for public endpoints that don't require authentication
41
44
None,