I agree but look at the following scenario if User hits http://somedomain/test.pl?param1=x¶m2=y
and if a failure happens in the authenticate handler I need to redirect to http://casmachine:8443/cas/login?service=<above url> that is http://casmachine:8443/cas/login?service=http://somedomain/test.pl?param1=x¶m2=y even though the http://casmachine:8443/cas/login?service=http://somedomain/test.pl is static users might requrest for inner files. Hence it is not static Due to this reason I thought I cant use AUTH_REQUIRED and use ErrorDocument Please let me know above can be achieved even using errorDocument Thanks Michael Peters wrote: > > Tracy12 wrote: > >> 1) As we dont use the apache basic authentication but our CAS >> authentication. If the authentication is not successful how can we >> redirect >> to the CAS login page. >> >> My suggestion -> instead of returning the AUTH_REQUIRED redirect to >> CAS URL with the service. >> if this is wrong how to achieve this in a different way > > I'd still use AUTH_REQUIRED and then use ErrorDocument to handle the > redirection > (unless of course you need to figure out the URL dynamically). This way > you can > keep the location as part of your config data. > > ErrorDocument 403 /login/url > >> 2) As we dont use the basic authentication in apache in the above >> httpd.conf >> entry what the values should we give for AuthType , AuthName in the above >> Location declaration. > > Set AuthType to 'Basic' since it's not 'Digest'. And then AuthName can be > whatever you want it to be. It's basically a way to group the locations > that use > the same Auth together (called a "realm"). > >> 3) Pass addtional parameters to the handler >> solution -> in the httpd.conf block pass it as >> >> PerlSetVar CASHost "testCasServer" >> PerlSetVar CASPort "8443" > > Yep. If possible keep the configuration data inside the configuration > <Location>s. > > -- > Michael Peters > Developer > Plus Three, LP > > > -- View this message in context: http://www.nabble.com/Lost-ENV-variable-value-.........-tf2956856.html#a8365219 Sent from the mod_perl - General mailing list archive at Nabble.com.