Expand description
§pas-external
Ppoppo Accounts System (PAS) client for Rust.
- OAuth2 PKCE authentication flow
- PASETO v4.public token verification
- Axum middleware for plug-and-play auth routes
§Usage
[dependencies]
pas-external = { version = "0.1", features = ["axum"] }For downstream consumer integration tests, enable test-support to access
MemoryPasAuth (deterministic in-memory PAS substitute, FIFO-scripted):
[dev-dependencies]
pas-external = { version = "0.1", features = ["axum", "test-support"] }Pre-1.0: minor bumps (
0.2,0.3) may include breaking changes per SemVer §11. Versions1.0.1–5.0.0were yanked from crates.io on 2026-04-30 as part of a pre-1.0 version reset;0.1.0is equivalent in scope to the (yanked)5.0.0development line. SeeCHANGELOG.mdfor the design history and0context/STANDARDS_SESSION_LIVENESS.mdfor the consumer-facing contract.
Re-exports§
pub use error::Error;pub use error::TokenError;pub use oauth::AuthClient;pub use oauth::AuthorizationRequest;pub use oauth::OAuthConfig;pub use oauth::TokenResponse;pub use oauth::UserInfo;pub use pkce::generate_code_challenge;pub use pkce::generate_code_verifier;pub use pkce::generate_state;pub use token::AuthSession;pub use token::BearerVerifier;pub use token::Expectations;pub use token::VerifyError;pub use types::KeyId;pub use types::Ppnum;pub use types::PpnumId;pub use types::SessionId;pub use types::UserId;
Modules§
- error
- oauth
- pas_
port - PAS network-boundary port and deep refresh core.
- pkce
- token
- γ port-and-adapter SDK boundary for bearer-token verification.
- types
Structs§
- Url
- A parsed URL record.