1pub mod cli;
5pub mod config;
6pub mod demo;
7pub mod encryption;
8pub mod error;
9pub mod httpclient;
10pub mod metadata;
11pub mod names;
12pub mod relying_party;
13pub mod replay;
14pub mod signature;
15pub mod ssf;
16pub mod token;
17pub mod x509util;
18pub mod xml;
19
20pub use config::{read_config_file, resolve_config, Resolved};
21pub use error::{fail, Result, WsFedError};
22pub use metadata::{read_idp_metadata, write_rp_metadata, IdpMetadata};
23pub use names::{
24 CM_BEARER, DEFAULT_SUBJECT_ATTRIBUTE, RSA_SHA256, STATUS_SUCCESS,
25};
26pub use relying_party::{LoginOptions, LoginRequest, RelyingParty, ReplyBody, ReplyRequest};
27pub use signature::sign_enveloped;
28pub use ssf::{events, SignalsReceiver};
29pub use token::Login;
30pub use x509util::{create_self_signed_key_pair, KeyPair};
31
32pub fn from_file(path: &str, overrides: Option<serde_json::Map<String, serde_json::Value>>) -> Result<RelyingParty> {
33 RelyingParty::from_file(path, overrides)
34}
35
36pub fn string_ptr(value: impl Into<String>) -> Option<String> {
37 Some(value.into())
38}
39
40#[cfg(test)]
41mod test_support;
42#[cfg(test)]
43mod test_rp;
44#[cfg(test)]
45mod test_x509;
46#[cfg(test)]
47mod test_ssf;
48#[cfg(test)]
49mod test_http;
50#[cfg(test)]
51mod test_configure;
52#[cfg(test)]
53mod test_trust_chain;
54#[cfg(test)]
55mod test_plain_http;