Jifty::Plugin::Authentication::CAS - JA-SIG CAS authentication plugin for Jifty


Jifty-Plugin-Authentication-CAS documentation Contained in the Jifty-Plugin-Authentication-CAS distribution.

Index


Code Index:

NAME

Top

Jifty::Plugin::Authentication::CAS - JA-SIG CAS authentication plugin for Jifty

DESCRIPTION

Top

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

CONFIG

Top

 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




METHODS

Top

prereq_plugins

This plugin depends on the User plugin.

init

load config

SEE ALSO

Top

Jifty::Manual::AccessControl, Jifty::Plugin::User, Authen::CAS::Client

AUTHOR

Top

Yves Agostini, <yvesago@cpan.org>

LICENSE

Top

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;