Hi David, The AbstractLoginModule is a good place to start. You might want to look at the other LoginModules in that package for inspiration.
Andrew On Mon, Oct 31, 2011 at 9:44 AM, Gao, Jian-Min (David, ES-BEST-Shore-Services-China-SH) <jian-min....@hp.com> wrote: > Hi Harry, > > If I want to write a custom login module for JSPWiki, do I need extend any > class from JSPWiki? JAAS is quite new to me. I had a quick look about JAAS > and JSPWiki source code. It seems I may need to extend > *com.ecyrd.jspwiki.auth.login.AbstractLoginModule* in order to write a custom > login module. Do I understand correctly? > > Best Regards, > David > > -----Original Message----- > From: Harry Metske [mailto:harry.met...@gmail.com] > Sent: Saturday, October 29, 2011 11:04 PM > To: jspwiki-dev@incubator.apache.org > Subject: Re: how to write my own authentication > > David, > > jspwiki uses JAAS, so you can write your own JAAS Login Module. > A long time ago a wrote one myself and documented it a bit : > http://www.jspwiki.org/wiki/JSPWiki%20on%20the%20Mainframe#section-JSPWiki+on+the+Mainframe-JAASLoginModule > > That page also has a jar attached containing the source. > > kind regards, > Harry > > > 2011/10/28 Gao, Jian-Min (David, ES-BEST-Shore-Services-China-SH) < > jian-min....@hp.com> > >> Hi list, >> >> I would like to write a custom authentication module, but I don't know >> where to start with. Do I need to extend class AbstractLoginModule? I >> didn't find any information quite useful on jspwiki.org. >> >> Best Regards, >> David Gao >> >> >