Authen-CAS-External

 view release on metacpan or  search on metacpan

lib/Authen/CAS/External/FAQ.pod  view on Meta::CPAN


=head1 HOW TO

=head2 How do I authenticate with only a ticket granting cookie?

  use Authen::CAS::External 0.02

  # Create a basic CAS object
  my $cas_service = Authen::CAS::External->new(
    cas_url  => 'http://cas.example.net/',
    password => 'does_not_matter',
    username => 'also_does_not_matter',
  );

  # Set the ticket granting cookie from some place
  $cas_service->ticket_granting_cookie($cookie);

  # Now authenticate using the CAS gateway option
  my $response = $cas_service->authenticate(
    gateway => 1,
    service => 'http://service.example.net/',
  );



( run in 1.543 second using v1.01-cache-2.11-cpan-0a987023a57 )