Skip to main content

build_entity_configuration

Function build_entity_configuration 

Source
pub fn build_entity_configuration(
    issuer_url: &str,
    signing_key: &SigningKey,
    verifying_key: &VerifyingKey,
    as_metadata: Value,
    authority_hints: &[String],
) -> String
Expand description

Build and sign an OpenID Federation 1.0 entity configuration JWT.

The JWT typ is entity-statement+jwt (not JWT), so we cannot use the existing jwt::encode() helper which hardcodes "typ":"JWT". We build it directly using standard base64url encoding.