{% for idp in keystone_sp.trusted_idp_list %} {% if idp.protocols is defined %} {% for protocol in idp.protocols %} {% if protocol.name == "saml2" and protocol.attributes is defined %} {% for attr in protocol.attributes %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %}