[cas-dev] FileAuthenticationHandler and filename styntax

Scott Battaglia scott.battaglia at gmail.com
Fri Mar 9 08:27:26 EST 2007


Julien,

That seems like a good idea!  If you want to file a JIRA feature enhancement
request and attach a patch that would be great!

Thanks
-Scott

On 3/9/07, Julien Marchal <Julien.Marchal at univ-nancy2.fr> wrote:
>
>  We have update the "generic adaptator" give with cas distribution (
> org.jasig.cas.adaptors.generic.FileAuthenticationHandler) to use spring
> ressource for the filename.
> It's more easy to define fileName with this (like file:/home/cas/userFile,
> or other spring ressource)
>
> Modifications are in
> org.jasig.cas.adaptors.generic.FileAuthenticationHandler
> 1) Replace :
> private String fileName;
> By
> private Resource fileName;
>
> 2) Replace :
> bufferedReader = new BufferedReader(new InputStreamReader(this
>                 .getClass().getResourceAsStream(this.fileName)));
> By
> bufferedReader = new BufferedReader(new InputStreamReader(
> fileName.getInputStream()));
>
> Do you think this solution is better ?
>
> PS : I don't know if you preffered mail or
> http://www.ja-sig.org/issues/browse/CAS to declare feature or bug ?
>
> --
>    [image: > Université Nancy 2] <http://www.univ-nancy2.fr/>    Pôle
> Lorrain de Gestion
> 13 rue du Maréchal Ney
> CO 30075
> 54036 NANCY Cedex
>   [image: > Téléphone] 03.54.50.36.54  [image: > Fax] 03.54.50.36.51    Julien
> Marchal  Equipe réseau - CRI
>
> _______________________________________________
> cas-dev mailing list
> cas-dev at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/afde8fc5/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 932 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/afde8fc5/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1829 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/afde8fc5/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1044 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/afde8fc5/attachment-0005.png 


More information about the cas-dev mailing list