Thanks Scott! I'll see how implement you suggestions and I'll come back here if troubles raise! Greetings, Rosa
2009/9/24 Scott Battaglia <scott.battag...@gmail.com> > On Thu, Sep 24, 2009 at 8:55 AM, Rosa Spina <spina.r...@gmail.com> wrote: > >> Thanks Bryan, >> I read about X509 handler and the guide I found was very usefull to me. >> Now I succeeded creating a new jar and simply inserting it in >> CAS_HOME/webapps/cas/WEB-INF/lib, it's very trivial, I know it...but now it >> works. Could this way be a problem? >> > > We generally encourage you to keep your code separate from the CAS code for > maintainability purposes. That said, I don't think we have a good example > of how to do this, generally just letting people know about the "Maven WAR > Overlay" method. I'll leave my self a note to come up with a sample but I > don't know if I'll get to it any time soon. > > >> I have still a question...what should I do to specify a class to execute >> only when authentication is successfull? Is there a way? >> > > We have three things that can get called after a successful authentication: > 1. Our auditing logic (see the section in the wiki on using Inspektr) > 2. Our CredentialToPrincipalResolvers which essentially determine who the > final principal is > 3. Our AuthenticationMetaDataPopulators which can add additional > information to the Authentication object. > > What info do you need to write to the database? The result of the > authentication? If so, look into option #1. If you actually need to write > the password to the database (which we don't recommend), take a look at 3. > Its a slight mis-use of the populators but probably the safest option. > > Cheers, > Scott > > > >> >> Thanks for reply Bryan! Happy to find help at my first time writing on >> this list :-) >> >> 2009/9/24 Bryan Wooten <bwoo...@acs.utah.edu> >> >>> Rosa, >>> >>> I added an additional authentication handler by using the X509 handler as >>> a template and changing the logic to authenticate an OpenSSO token. >>> >>> I then used the "overlay build" process to create the CAS war file. It >>> was actually a very straight forward process and with help of other people >>> on this list very successful. >>> >>> I hope this helps. >>> >>> Cheers, >>> >>> Bryan >>> >>> -----Original Message----- >>> From: Rosa [mailto:spina.r...@gmail.com] >>> Sent: Thursday, September 24, 2009 5:16 AM >>> To: cas-dev@lists.jasig.org >>> Subject: [cas-dev] Extending AuthenticationHandler >>> >>> Hi all, >>> I need server CAS to perform some else operation when user log in: I want >>> it to write credentials inserted by user in a file or DB. I was thinking to >>> do it extending AuthenticationHandler class so to perform login and other >>> operations. >>> >>> The point is: where should I place my class extending >>> AuthenticationHandler? I look around for solution, but I didn't find one. >>> >>> Another thing: I know I must add my handler to list in >>> deployerConfigContext.xml file as follow: >>> >>> <property name="authenticationHandlers"> >>> <list> >>> <class="org.jasig.cas.authentication.AuthenticationManagerImpl"> >>> <class="com.my.extending.myClass"> >>> </list> >>> </bean> >>> >>> I would know if bean in the list are all executed or not. If not, which >>> one is executed? >>> >>> Sorry for my bad explanation, I'm newbie to CAS and surely I didn't use >>> the appropriate language. >>> >>> Hope in help by you, thanks for attention! >>> -- >>> You are currently subscribed to cas-dev@lists.jasig.org as: >>> bwoo...@acs.utah.edu >>> To unsubscribe, change settings or access archives, see >>> http://www.ja-sig.org/wiki/display/JSG/cas-dev >>> >>> -- >>> You are currently subscribed to cas-dev@lists.jasig.org as: >>> spina.r...@gmail.com >>> To unsubscribe, change settings or access archives, see >>> http://www.ja-sig.org/wiki/display/JSG/cas-dev >>> >> >> -- >> You are currently subscribed to cas-dev@lists.jasig.org as: >> scott.battag...@gmail.com >> >> >> To unsubscribe, change settings or access archives, see >> http://www.ja-sig.org/wiki/display/JSG/cas-dev >> >> > -- > You are currently subscribed to cas-dev@lists.jasig.org as: > spina.r...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-dev > > -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev