atproto-client
HTTP client library for AT Protocol services with DPoP authentication support.
Overview
atproto-client provides HTTP client functionality specifically designed for interacting with AT Protocol endpoints. This library handles both basic HTTP operations and DPoP-authenticated requests required for secure AT Protocol communication.
Binaries
All CLI tools require the clap feature:
- atproto-client-auth: Create and refresh authentication sessions with AT Protocol services using identifier and password
- atproto-client-app-password: Make authenticated XRPC calls using application-specific Bearer tokens and app passwords
- atproto-client-dpop: Make authenticated XRPC calls using DPoP (Demonstration of Proof-of-Possession) tokens for enhanced security
Usage
Basic HTTP Operations
use client;
use Client;
let http_client = new;
let response = get_json.await?;
DPoP Authentication
use ;
use identify_key;
let dpop_auth = DPoPAuth ;
let response = get_dpop_json.await?;
Repository Operations
use ;
let create_request = CreateRecordRequest ;
let response = create_record.await?;
Command Line Examples
Create and Manage Sessions
# Create an authentication session with username and password
# Use an existing app password for session creation
App Password Authentication
# Make an XRPC call using app password Bearer token
DPoP Authentication
# Make an authenticated XRPC call using DPoP tokens
License
MIT License