Expand description
§OpenID Federation
A Rust implementation of the OpenID Federation 1.0 standard.
This library provides support for OpenID Federation, which allows for the creation of trust relationships between OpenID Connect providers and relying parties through a federation of trust anchors.
§Crypto backend
JWTs are signed and verified with jsonwebtoken, whose crypto backend the application chooses: enable exactly
one of its aws_lc_rs and rust_crypto features, or install a provider with
jsonwebtoken::crypto::CryptoProvider::install_default at startup. Without an installed provider, signing and
verifying panic when neither or both features are enabled.
Re-exports§
pub use jwk::HistoricalKey;pub use jwk::HistoricalKeys;pub use jwk::Jwk;pub use jwk::JwkSet;pub use jwk::KeyRevocation;pub use jwk::RevocationReason;pub use endpoint::*;pub use entity::*;pub use error::*;pub use jwt::*;pub use keys::*;pub use metadata::*;pub use onboarding::*;pub use policy::*;pub use store::*;pub use trust_chain::*;pub use trust_marks::*;pub use types::*;pub use utils::*;
Modules§
- endpoint
- What the federation endpoints answer: the response value every handler returns, and the error response of OpenID Federation 1.0, Section 8.9.
- entity
- Subordinate Statement and Entity Configuration structures.
- error
- Error types for OpenID Federation operations.
- jwk
- JSON Web Key (JWK) and JSON Web Key Set (JWKS) utilities.
- jwt
- JWT utilities for OpenID Federation.
- keys
- An entity’s Federation Entity Keys across rollover: which keys it publishes in
jwks, which one it signs with, and which it has retired (OpenID Federation 1.0, Sections 11.1 and 11.2). - metadata
- Metadata structures for OpenID Federation entities.
- onboarding
- Checking a candidate before a Superior registers it as an Immediate Subordinate.
- policy
- Metadata policies along a Trust Chain: the
metadata_policyclaims of its Subordinate Statements merged into one (OpenID Federation 1.0, Section 6.1.4.1), and the resolved policy applied to metadata (Section 6.1.4.2). - store
- What the issuing side reads from the application’s storage: the Immediate Subordinates a Trust Anchor or Intermediate Entity registered, and the Trust Marks a Trust Mark Issuer issued, each behind an async trait with an in-memory implementation (ADR 0005).
- trust_
chain - Trust Chain structures and validation logic.
- trust_
marks - Verifying a Trust Mark that an Entity presents (OpenID Federation 1.0, Sections 7.2.2, 7.3 and 17.5): its issuer is trusted through a Trust Chain to a Trust Anchor, the Trust Anchor recognizes the issuer for the Trust Mark type, the signature and time claims hold, and a delegation from the type’s owner is present and valid when the Trust Anchor names an owner.
- types
- Common types used throughout the OpenID Federation implementation.
- utils
- Utility functions for OpenID Federation operations.