Skip to main content

Crate samlify

Crate samlify 

Source
Expand description

Thin re-export crate. All SAML logic lives in opensaml.

§Disclaimer — no affiliation

This is an independent, unofficial Rust crate. It is not affiliated with, derived from, maintained by, endorsed by, or sponsored by the npm samlify package or its authors. The name is only a Rust crate alias and shares no code with that package.

Modules§

binding
SAML HTTP binding helpers: POST form, Redirect query, DEFLATE, base64, and XML/HTML escaping.
constants
SAML 2.0 URN constants and keywords.
context
Global parsing context (samlify api.ts): an optional schema validator.
crypto
XML security backend abstraction.
entity
Entity base settings shared by crate::sp::ServiceProvider and crate::idp::IdentityProvider (samlify entity.ts defaultEntitySetting).
error
Error types for opensaml.
flow
Inbound message flow (samlify flow.ts): decode → validate XML/status → (signature verify + optional decrypt) → extract → issuer/time validation.
idp
SAML Identity Provider entity (samlify entity-idp.ts).
logout
Single Logout (SLO) — create/parse LogoutRequest & LogoutResponse (samlify Entity.createLogoutRequest/createLogoutResponse/parseLogout*).
metadata
SAML metadata parsing (samlify metadata.ts + metadata-sp/idp).
sp
SAML Service Provider entity (samlify entity-sp.ts).
template
Default SAML message templates and tag substitution (samlify libsaml.ts).
util
Small helpers ported from samlify utility.ts.
validator
Time and status validation (samlify validator.ts + flow.ts checkStatus).
xml
XML parsing and field extraction (samlify extractor.ts port) over quick-xml.

Structs§

EntitySetting
Runtime configuration for an entity (keys, algorithms, flags).
IdentityProvider
A SAML 2.0 Identity Provider: runtime EntitySetting plus parsed IdpMetadata.
ServiceProvider
A SAML 2.0 Service Provider: runtime EntitySetting plus parsed SpMetadata.

Enums§

OpenSamlError
Errors produced by the opensaml Service Provider library.