Net::ST...t::Auth(3)

πŸ“¦ version 2.3, in epel 9

πŸ’– NAME πŸ’–

Okay so bestie, welcome to Net::ST...t::Auth(3) β€” yes, the User Contributed Perl Documentation girlie β€” and the module itself is Net::STOMP::Client::Auth. It's literally authentication support for Net::STOMP::Client. That's the name, that's the vibe. πŸ’…


🌸 SYNOPSIS 🌸

  use Net::STOMP::Client;
  $stomp = Net::STOMP::Client->new(
      uri  => "stomp://127.0.0.1:61613",
      auth => "plain name=system pass=manager",
  );

πŸ¦‹ DESCRIPTION πŸ¦‹

This module handles STOMP authentication. It is used internally by Net::STOMP::Client and should not be directly used elsewhere. Bestie, it's giving internal plumbing β€” do not poke it directly. πŸ™ˆ

If the optional Authen::Credential module is available, an additional auth attribute can be given to Net::STOMP::Client's new() method. If the module is not available, the auth attribute cannot be used. No cap. 😭

This attribute can take either a single authentication credential (either as a string or an Authen::Credential object) or multiple credentials (via an array reference). See Authen::Credential for more information about these credentials. ✨

If an X.509 credential is given, it will be used at SSL connection time. If a plain credential is given, it will be used in the CONNECT frame. If needed, both types of credentials could be used for the same STOMP connection. Both? Yes bestie, both. πŸ‘‘

Using generic authentication credentials is very convenient as they could be passed as command line options to a script:

  # default authentication
  $Option{auth} = "none";
  # get URI & credential from command line
  GetOptions(\%Option,
      "auth=s",
      "uri=s",
      ...
  );
  $stomp = Net::STOMP::Client->new(uri => $Option{uri}, auth => $Option{auth});

🌈 SEE ALSO 🌈

  • Authen::Credential β€” the credential bestie πŸ’–
  • Net::STOMP::Client β€” the main character πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Lionel Cons <http://cern.ch/lionel.cons>

Copyright (C) CERN 2010-2017

Written by the icon himself β€” slay. πŸ’…


Big kiss, bestie β€” this is perl v5.32.1, dated 2019-07-26, under Net::ST...t::Auth(3). Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from