pub fn tide_metadata_response(metadata: SamlMetadata) -> tide::Response {
    let mut res = tide::Response::new(200);
    // Metadata spec is here http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf
    // application/samlmetadata+xml
    res.set_content_type("application/samlmetadata+xml");
    res.set_body(generate_metadata_xml(metadata));
    res
}
/// Responds with the metadata XML file in a 200-status response with the right content-type
Responds with the metadata XML file in a 200-status response with the right content-type
Responds with the metadata XML file in a 200 - status response with the right content - type
pub fn tide_metadata_response(metadata: SamlMetadata) -> tide::Response {
    let mut res = tide::Response::new(200);
    // Metadata spec is here http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf
    // application/samlmetadata+xml
    res.set_content_type("application/samlmetadata+xml");
    res.set_body(generate_metadata_xml(metadata));
    res
}
pub fn tide_metadata_response ( metadata : SamlMetadata ) -> tide :: Response { let mut res = tide :: Response :: new ( 200 ) ; // Metadata spec is here http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf // application/samlmetadata+xml res . set_content_type ( " " ) ; res . set_body ( generate_metadata_xml ( metadata ) ) ; res }
Responds with the metadata XML file in a 200-status response with the right content-type
Responds with the metadata XML file in a 200 - status response with the right content - type
metadata
SamlMetadata
metadata
SamlMetadata