Hi Folks,

My Application authenticates against a CAS server. We have both a CLI and a Web 
Interface, the web Interface can use a Filter however for the CLI layer to 
authenticate I use a custom JAASLoginModule. This LoginModule basically uses 
the CAS REST API to authenticate the user obtain the ST then immediately 
validate ST and obtains the user principal. This is done as you might have 
guessed because a CLI application is not running in a browser it cannot be 
redirected as a browser based application is via HTTP 302.

I am now working on introducing Shiro in between. I can use the CAS Shiro 
plugin but I am assuming this will work only if I use the Shiro-Web package 
i.e. only through Filters. I looked at the source code and looks like the 
CASRealm expects to be used by Filters.

Just wanted to check with you folks by any chance Shiro has taken care of this 
for CLI kind of applications? Next I am going to study the Shiro Core source 
code to confirm my assumption.

Thanks
Farooq

Reply via email to