Authen-CAS-External
view release on metacpan or search on metacpan
lib/Authen/CAS/External/UserAgent.pm view on Meta::CPAN
$user_agent ||= $self->user_agent;
# Get fully-qualified host and path
my ($cas_host, $cas_path) = map { $_->host, $_->path }
$self->service_request_url(cas_url => $cas_url);
# Create the owner reference
my $owner = \$self;
# This is a reference to a weak reference to prevent circular references
Scalar::Util::weaken(${$owner});
# Add handlers
$user_agent->add_handler(
request_prepare => \&_process_ticket_granting_cookie,
m_host => $cas_host,
m_method => 'GET',
m_path_match => qr{\A \Q$cas_path\E}msx,
object_instance => $owner,
owner => $self->_handler_owner_name,
);
( run in 1.655 second using v1.01-cache-2.11-cpan-65fba6d93b7 )