Skip to main content

Module template

Module template 

Source
Expand description

Default SAML message templates and tag substitution (samlify libsaml.ts).

{Tag} placeholders are filled by replace_tags_by_value; values used in an attribute (i.e. immediately preceded by ") are XML-escaped, while element-text values are inserted verbatim — matching samlify exactly.

Structs§

LoginResponseAttribute
A single <Attribute> to render in a login response (samlify LoginResponseAttribute).
LoginResponseTemplate
IdP login <Response> template config (samlify LoginResponseTemplate).

Constants§

ATTRIBUTE_STATEMENT_TEMPLATE
Default <AttributeStatement> wrapper template.
ATTRIBUTE_TEMPLATE
Default <Attribute> template.
LOGIN_REQUEST_TEMPLATE
Default <AuthnRequest> template.
LOGIN_RESPONSE_TEMPLATE
Default login <Response> template.
LOGOUT_REQUEST_TEMPLATE
Default <LogoutRequest> template.
LOGOUT_RESPONSE_TEMPLATE
Default <LogoutResponse> template.

Functions§

attr_tag
Placeholder key (without braces) for an attribute value tag: attr<CamelCase> (samlify tagging('attr', valueTag)). The runtime value fills {<key>}.
attribute_statement_builder
Build an <AttributeStatement> from attributes (samlify attributeStatementBuilder).
replace_tags_by_value
Replace {key} placeholders in raw_xml.