Expand description
Shared access-token substrate — cross-mode runtime infrastructure.
This module owns capabilities that depend only on a verified access
token and X-SecurityDept-Propagation, regardless of which OIDC mode
originally produced the token.
§Capability axes
token_propagation—disabledvsenabled(downstream bearer propagation substrate)
§Submodules
| Submodule | Description |
|---|---|
capabilities | Substrate capability axes (TokenPropagation) |
config | AccessTokenSubstrateConfig |
runtime | AccessTokenSubstrateRuntime — single authority for substrate runtime objects |
[propagation] | Destination-policy gated bearer propagation |
[forwarder] | Propagation forwarder traits (PropagationForwarderConfigSource, PropagationForwarder, PropagationForwarderError) + axum reverse-proxy forwarder (feature-gated) |
§Resource-server types
Key resource-server types from securitydept-oauth-resource-server are
re-exported here so adopters do not need a direct dependency:
Re-exports§
pub use capabilities::TokenPropagation;pub use capabilities::TokenPropagationKind;pub use config::AccessTokenSubstrateConfig;pub use config::AccessTokenSubstrateConfigSource;pub use config::ResolvedAccessTokenSubstrateConfig;pub use runtime::AccessTokenSubstrateRuntime;pub use runtime::AccessTokenSubstrateRuntimeError;
Modules§
Structs§
- Access
Token Substrate Resource Service - Cross-mode resource service for verifying bearer tokens and forwarding propagation requests.
- OAuth
Resource Server Verifier - Propagated
Bearer - Runtime bearer material and access-token facts used during propagation.
- Propagated
Token Validation Config - Additional token constraints evaluated before a bearer token may be forwarded.
- Propagation
Destination Policy - Allowlist and safety guards for downstream targets.
- Propagation
Directive - Parsed value of
x-securitydept-propagation. - Propagation
Request Target - Normalized downstream target context used during bearer propagation.
- Resource
Token Principal - Token
Propagator - Token
Propagator Config - Server-side token propagation configuration.
- Verification
Policy - Verified
Access Token
Enums§
- Access
Token Substrate Resource Service Error - Errors produced by
AccessTokenSubstrateResourceService. - Allowed
Propagation Target - A single downstream target allowlist rule.
- Bearer
Propagation Policy - Controls how a validated upstream bearer token may be propagated downstream.
- Propagation
Forwarder Error - Error type for propagation forwarders.
- Propagation
Scheme - Normalized scheme used for downstream propagation rules.
- Token
Propagator Error - Verified
Token
Constants§
Traits§
- Propagation
Forwarder - Runtime trait for a propagation forwarder.
- Propagation
Forwarder Config Source - Config-source trait for a propagation forwarder.
- Propagation
Node Target Resolver