Plack::Auth::SSO::CAS - implementation of Plack::Auth::SSO for CAS
#in your app.psgi builder { mount "/auth/cas" => Plack::Auth::SSO::CAS->new( session_key => "auth_sso", uri_base => "http://localhost:5000", authorization_path => "/auth/cas/callback" )->to_app; mount "/auth/cas/callback" => sub { my $env = shift; my $session = Plack::Session->new($env); my $auth_sso = $session->get("auth_sso"); #not authenticated yet unless($auth_sso){ return [403,["Content-Type" => "text/html"],["forbidden"]]; } #process auth_sso (white list, roles ..) [200,["Content-Type" => "text/html"],["logged in!"]]; }; };
This is an implementation of Plack::Auth::SSO to authenticate against a CAS server.
It inherits all configuration options from its parent.
base url of the CAS service
* add an option to ignore validation of the SSL certificate of the CAS Service? For now you should set the environment like this:
export SSL_VERIFY_NONE=1 export PERL_LWP_SSL_VERIFY_HOSTNAME=0
Nicolas Franck, <nicolas.franck at ugent.be>
<nicolas.franck at ugent.be>
Plack::Auth::SSO
To install Plack::Auth::SSO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Auth::SSO
CPAN shell
perl -MCPAN -e shell install Plack::Auth::SSO
For more information on module installation, please visit the detailed CPAN module installation guide.