/usr/share/perl5/Jifty/Plugin/Authentication/CAS.pm is in libjifty-plugin-authentication-cas-perl 1.00-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | use strict;
use warnings;
package Jifty::Plugin::Authentication::CAS;
use base qw/Jifty::Plugin/;
use Authen::CAS::Client;
our $VERSION = '1.00';
=head1 NAME
Jifty::Plugin::Authentication::CAS - JA-SIG CAS authentication plugin for Jifty
=head1 DESCRIPTION
This may be combined with the L<Jifty::Plugin::User> plugin to provide user authentication using JA-SIG CAS protocol to your application.
https is managed with Crypt::SSLeay
=head1 CONFIG
in etc/config.yml
Plugins:
- Authentication::CAS:
CASUrl: https://auth.univ-metz.fr/cas
CASDomain: univ-metz.fr # optional: create email if login@domain is valid
=head1 METHODS
=head2 prereq_plugins
This plugin depends on the L<User|Jifty::Plugin::User> plugin.
=cut
sub prereq_plugins {
return ('User');
}
my ($CAS,$domain);
=head2 init
load config
=cut
sub init {
my $self = shift;
my %args = @_;
$CAS = Authen::CAS::Client->new ( $args{'CASUrl'} );
$domain = $args{'CASDomain'} || "" ;
};
sub CAS {
return $CAS;
};
sub domain {
return $domain;
};
=head1 SEE ALSO
L<Jifty::Manual::AccessControl>, L<Jifty::Plugin::User>, L<Authen::CAS::Client>
=head1 AUTHOR
Yves Agostini, <yvesago@cpan.org>
=head1 LICENSE
Copyright 2007-2009 Yves Agostini. All Rights Reserved.
This program is free software and may be modified and distributed under the same terms as Perl itself.
=cut
1;
|