Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Docs-dev

PerlAuthenHandler - Allowing necessary URLs to pass thru or be excluded

 

 

ModPerl docs-dev RSS feed   Index | Next | Previous | View Threaded


andy.hale.ctr at metnet

Jul 20, 2004, 10:15 AM

Post #1 of 2 (1450 views)
Permalink
PerlAuthenHandler - Allowing necessary URLs to pass thru or be excluded

I have a custom PerlAuthenHandler that works fine when protecting
particular URLs but if I try to protect the document root it also
protects necessary URLs I use for login and logout. Is there a way that
I can exclude particular URLs or allow them to pass thru?


Here is my SSO.conf file

-----CUT-----

#<IfModule mod_perl.c>
PerlOptions +GlobalRequest
<Location /SSO-login>
SetHandler perl-script
PerlHandler SSO::SSOAuthHandler->login
AuthType SSO::SSOAuthHandler
AuthName SSO
</Location>


<Location /SSO-logout>
SetHandler perl-script
PerlHandler SSO::SSOAuthHandler->logout
AuthType SSO::SSOAuthHandler
AuthName SSO
</Location>


# Below are URI locations to be protected
# Protect /manual
<Location /manual>
PerlAuthenHandler SSO::SSOAuthHandler->authenticate
AuthType SSO::SSOAuthHandler
AuthName SSO
require valid-user
</Location>

# Protect /
<Location />
PerlAuthenHandler SSO::SSOAuthHandler->authenticate
AuthType SSO::SSOAuthHandler
AuthName SSO
require valid-user
</Location>
#</IfModule>

----CUT-----


Andy Hale

--
------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the use
of e-mail for such purpose.
------------------------------------------------------------------------
Attachments: andy.hale.ctr.vcf (0.38 KB)


stas at stason

Jul 21, 2004, 9:57 AM

Post #2 of 2 (1333 views)
Permalink
Re: PerlAuthenHandler - Allowing necessary URLs to pass thru or be excluded [In reply to]

Andy, the right list for modperl questions is:
http://perl.apache.org/maillist/modperl.html#Subscription_Information


--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe [at] perl
For additional commands, e-mail: docs-dev-help [at] perl

ModPerl docs-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.