Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Authenticate via REST::Client against Rundeck API

by hdb (Monsignor)
on Mar 14, 2019 at 11:57 UTC ( [id://1231253]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $myagent    = LWP::UserAgent->new();
    my $cookie_jar = HTTP::Cookies->new(
    ...
        ignore_discard => 1,
        );
    $myagent->cookie_jar( $cookie_jar );
    
  2. or download this
    %options = ( "url"      => "j_security_check",
                "j_username" => $username,
                "j_password" => $password,
                "useragent"  => $myagent );
    
  3. or download this
    my $cookie_jar = HTTP::Cookies->new(
        autosave       => 1,
        ignore_discard => 1,
        );
    $client->getUseragent()->cookie_jar( $cookie_jar );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1231253]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-20 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found