Authen::CAS::External::Response - Response from CAS interaction.
This documentation refers to Authen::CAS::External::Response version 0.02
my $response = $cas_external->authenticate; if (!$response->is_success) { croak 'Authentication failed'; } # Get a PHP Session cookie my %cookies = $response->get_cookies('PHPSESSID'); my $PHP_SESSION_ID = $cookies{PHPSESSID}; # Continue the request $response = $ua->get($response->destination);
This module is rarely created by anything other than Authen::CAS::External::UserAgent. This is an object that is provided to make determining what the CAS response was easier.
This method is for convience pruposes. Using this method, a HEAD request will be made to the destination URL and will return a hash of the cookie names and their values that would have been set.
get_cookies()
When no arguments are provided, returns a string of the cookies, using the as_string method of HTTP::Cookie.
get_cookies(qw(PHPSESSID))
When given a list of cookie names, a hash is returned with only those cookies where the cookie name is the key and the value is the value.
Returns a Boolean of weither or not this response indicates a successful authentication.
Moose 0.74
MooseX::StrictConstructor 0.08
Authen::CAS::Client 0.03
WWW::Mechanize 1.54
namespace::clean 0.04
Douglas Christopher Wilson, <doug at somethingdoug.com>
<doug at somethingdoug.com>
Please report any bugs or feature requests to bug-authen-cas-external at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Authen-CAS-External. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-authen-cas-external at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Authen::CAS::External
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Authen-CAS-External
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Authen-CAS-External
CPAN Ratings
http://cpanratings.perl.org/d/Authen-CAS-External
Search CPAN
http://search.cpan.org/dist/Authen-CAS-External/
Copyright 2009 Douglas Christopher Wilson, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Authen::CAS::External, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::CAS::External
CPAN shell
perl -MCPAN -e shell install Authen::CAS::External
For more information on module installation, please visit the detailed CPAN module installation guide.