Net::SA...rtifact(3)

πŸ“¦ version 0.85, in alpine 3.24

πŸ’– NAME πŸ’–

okay so bestie, welcome to Net::SA...rtifact(3) from the User Contributed Perl Documentation shelf πŸ¦‹. This is the Net::SAML2::Protocol::Artifact module β€” a SAML2 artifact object, and it’s giving small but crucial, no cap. πŸ’…

✨ VERSION ✨

version 0.85 β€” cute, current, iconic. πŸŽ€

🌸 SYNOPSIS 🌸

Here’s the exact group-chat recipe, fr fr β€” don’t freestyle the punctuation:

  my $artifact = Net::SAML2::Protocol::Artifact->new_from_xml(
                        xml => Net::SAML2::Binding::SOAP->request(
                                    Net::SAML2::SP->artifact_request(
                                        $art_url,
                                        $artifact
                                    )->as_xml)
                );

  or

  my $request = Net::SAML2::SP->artifact_request($art_url, $artifact)->as_xml;
  my soap_response = Net::SAML2::Binding::SOAP->request($request);
  my $artifact = Net::SAML2::Protocol::Artifact->new_from_xml(soap_response);

  # get_response returns the Response or LogoutResponse
  my art_response = $artifact->get_response();

Both paths are in the original vibe: either build it nested-style or take it step by step. iykyk ✨

πŸ› οΈ METHODS πŸ› οΈ

🧚 new_from_xml( ... )

Constructor alert 🚨. Creates an instance of the Artifact object, parsing the given XML to find the response and logout_response if they exist, as well as the issuer, issue_instant, and in_response_to. It’s lowkey doing a lot, and we respect it. 😌

Arguments:

  • xml β€” XML data. That’s the input tea. πŸ“

πŸ“¬ response

Returns the response. Short, sweet, slay. ✨

πŸšͺ logout_response

Returns the logoutresponse πŸ’€.

🎯 get_response ( )

Returns the LogoutResponse or Response depending on which is defined. Whichever one is defined is the main character here πŸ‘‘.

πŸ‘‘ AUTHOR πŸ‘‘

Timothy Legge <timlegge@gmail.com> β€” author, periodt. 🫢

Legal bestie moment, read it and weep (lovingly) β˜•:

This software is copyright (c) 2026 by Venda Ltd, see the CONTRIBUTORS file for others.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


Signed off with source/version perl v5.42.2, dated 2026-02-11 β€” Net::SA...rtifact(3) out. πŸ’…πŸ’–

πŸ“¦ where this page comes from