AuthCASpbh::Authn - CAS SSO authentication for Apache/mod_perl


        PerlModule Apache2::AuthCASpbh::Authn
        <Location "/myapp">
                AuthType Apache2::AuthCASpbh
                AuthName "CAS"
                PerlAuthenHandler Apache2::AuthCASpbh::Authn
                Require valid-user


AuthCASpbh::Authn provides CAS authentication for Apache/mod_perl. It can be used to protect Apache resources, along with built in Apache authorization for users/groups as well as CAS attribute based authorization provided by Apache::AuthCASpbh::Authz. Along with Apache::AuthCASpbh::UserAgent, authentication can be proxied to additional CAS based services. Its operation can be managed by the configuration variables described in Apache::AuthCASpbh.

mod_perl integration

If the resource being protected is a mod_perl application, the following values will be available in the request pnotes:


A hash of the attributes supplied by the CAS server, if any.


The proxy granting ticket acquired from the CAS server, if RequestPGT is enabled.


An array of proxies the authentication originated via if the client ticket provided was a proxy ticket.


The session identifier for this request.


AuthCASpbh is available via CPAN as well as on GitHub at


Copyright (c) 2018, Paul B. Henson <>

This file is part of AuthCASpbh.

AuthCASpbh is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

AuthCASpbh is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with AuthCASpbh. If not, see <>.


Apache2::AuthCASpbh - Overview and configuration details

Apache2::AuthCASpbh::Authz - Authorization functionality

Apache2::AuthCASpbh::ProxyCB - Proxy granting ticket callback module

Apache2::AuthCASpbh::UserAgent - Proxy authentication client