| Jifty-Plugin-Authentication-CAS documentation | Contained in the Jifty-Plugin-Authentication-CAS distribution. |
Jifty::Plugin::Authentication::CAS - JA-SIG CAS authentication plugin for Jifty
This may be combined with the Jifty::Plugin::User plugin to provide user authentication using JA-SIG CAS protocol to your application.
https is managed with Crypt::SSLeay
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
This plugin depends on the User plugin.
load config
Jifty::Manual::AccessControl, Jifty::Plugin::User, Authen::CAS::Client
Yves Agostini, <yvesago@cpan.org>
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.
| Jifty-Plugin-Authentication-CAS documentation | Contained in the Jifty-Plugin-Authentication-CAS distribution. |
use strict; use warnings; package Jifty::Plugin::Authentication::CAS; use base qw/Jifty::Plugin/; use Authen::CAS::Client; our $VERSION = '1.00';
sub prereq_plugins { return ('User'); } my ($CAS,$domain);
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; };
1;