I think you should add handling to the WikiCallbackHandler, actually that already has been done for 3.0 to support TextOutput Callbacks. See also https://issues.apache.org/jira/browse/JSPWIKI-464
Harry 2009/3/27 <[email protected]> > I'm in the process of implementing a custom LoginModule and I ran into an > issue (maybe). I need to access the HTTPRequest and possibly the > WikiEngine so I included them as callbacks: > > > HttpRequestCallback hcb = new HttpRequestCallback(); > WikiEngineCallback wcb = new WikiEngineCallback(); > Callback[] callbacks = new Callback[]{ hcb, wcb }; > > The trouble is, when I try the "handle" call, it excepts with the > following: > > javax.security.auth.callback.UnsupportedCallbackException > at > > com.ecyrd.jspwiki.auth.login.WikiCallbackHandler.handle(WikiCallbackHandler.java:89) > at > > com.lognet.wiki.auth.login.AnyoneAuthenticationLoginModule.login(AnyoneAuthenticationLoginModule.java:36) > > I noticed the WikiCallbackHandler.java only supports UserDatabase, Name > and Password callbacks - do I need to add handling for theHttpRequest and > WikiEngine or should I create a custom callback handler and use it? Sorry > if this is a simple question, but I am new to writing LoginModules and > callbacks. > > Thanks, > Lou > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > LOG-NET, Inc. > The Logistics Network Management System > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 230 Half Mile Road > Third Floor > Red Bank, NJ 07701 > PH: 732-758-6800 > FAX: 732-747-7497 > http://www.LOG-NET.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > CONFIDENTIAL & PRIVILEGED > Unless otherwise indicated or if obvious from the nature of the content, > the information contained herein is privileged and confidential > information/work product. The communication is intended for the use of the > individual or entity named above. If the reader of this transmission is > not the intended recipient, you are hereby notified that any > dissemination, distribution or copying of this communication is strictly > prohibited. If you have received this communication in error, please > notify the sender immediately by telephone (732-758-6800) or by electronic > mail ([email protected]), and destroy any copies, electronic, paper > or otherwise, which you may have of this communication. Thank you. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
