Skip to main content

Crate arete_auth

Crate arete_auth 

Source
Expand description

Arete Authentication Library

This crate provides authentication and authorization utilities for Arete, including JWT token handling, claims validation, and key management.

Re-exports§

pub use audit::auth_failure_event;
pub use audit::auth_success_event;
pub use audit::rate_limit_event;
pub use audit::AuditEvent;
pub use audit::AuditSeverity;
pub use audit::ChannelAuditLogger;
pub use audit::NoOpAuditLogger;
pub use audit::SecurityAuditEvent;
pub use audit::SecurityAuditLogger;
pub use claims::AuthContext;
pub use claims::KeyClass;
pub use claims::Limits;
pub use claims::SessionClaims;
pub use claims::TargetKind;
pub use error::AuthError;
pub use error::AuthErrorCode;
pub use error::RetryPolicy;
pub use error::VerifyError;
pub use keys::KeyLoader;
pub use keys::SigningKey;
pub use keys::VerifyingKey;
pub use metrics::AuthMetrics;
pub use metrics::AuthMetricsCollector;
pub use metrics::AuthMetricsSnapshot;
pub use multi_key::MultiKeyVerifier;
pub use multi_key::MultiKeyVerifierBuilder;
pub use multi_key::RotationKey;
pub use program_read::ProgramReadAuthorization;
pub use program_read::ProgramReadAuthorizationError;
pub use revocation::RevocationChecker;
pub use revocation::TokenRevocationList;
pub use solana_gateway::SolanaGatewayAuthorization;
pub use solana_gateway::SolanaGatewayAuthorizationError;
pub use solana_gateway::SolanaGatewayScope;
pub use token::TokenError;
pub use token::TokenSigner;
pub use token::TokenVerifier;
pub use verifier::AsyncVerifier;
pub use verifier::SimpleVerifier;

Modules§

audit
claims
error
keys
metrics
multi_key
program_read
revocation
Token revocation support
solana_gateway
token
verifier

Constants§

DEFAULT_REFRESH_WINDOW_SECONDS
Refresh window in seconds before expiry (60 seconds)
DEFAULT_SESSION_TTL_SECONDS
Default session token TTL in seconds (5 minutes)
PROGRAM_READ_AUDIENCE
Stable JWT audience for the shared program-read service.
SCOPE_READ
Exact scope for chain reads.
SCOPE_TRANSACTION_INSPECT
Exact scope for transaction inspection operations.
SCOPE_TRANSACTION_SEND
Exact scope for transaction submission.
SOLANA_GATEWAY_AUDIENCE
Stable JWT audience shared by all regional Solana gateways.