Apparently this is a fix for "Bug 353465 - JAASLoginService ignores callbackHandlerClass" that was implemented on 08 Aug 2011 according to the Git history. I am trying to work against the latest stable release: jetty-distribution-7.4.5.v201107257
-Todor On Mon, Aug 8, 2011 at 9:51 AM, Todor Boev <[email protected]> wrote: > Apparently I'm not looking at the same source: > > http://download.eclipse.org/jetty/stable-7/xref/org/eclipse/jetty/plus/jaas/JAASLoginService.html#176 > > On Fri, Aug 5, 2011 at 9:25 PM, Jesse McConnell > <[email protected]> wrote: >> /* ------------------------------------------------------------ */ >> public UserIdentity login(final String username,final Object credentials) >> { >> try >> { >> CallbackHandler callbackHandler = null; >> >> if (_callbackHandlerClass == null) >> { >> // shouldn't be the case so removed >> } >> else >> { >> Class clazz = Loader.loadClass(getClass(), >> _callbackHandlerClass); >> callbackHandler = >> (CallbackHandler)clazz.newInstance(); <-- your instance... >> } >> >> sorry, still not following what you mean by an anonymous Callback >> instance, that should be your handler >> >> cheers, >> jesse >> >> -- >> jesse mcconnell >> [email protected] >> >> >> >> On Fri, Aug 5, 2011 at 13:10, Todor Boev <[email protected]> wrote: >>> I looked up the source from http://download.eclipse.org/jetty/stable-7/xref/ >>> >>> And I do set the callback handler class from the jetty configuration >>> similarly to this: >>> >>> <Set >>> name="CallbackHandlerClass">org.eclipse.jetty.plus.jaas.callback.DefaultCallbackHandler</Set> >>> >>> I know for a fact that the JAASLoginService is called. However >>> breakpoints even in DefaultCallbackHandler when set like this are not >>> hit. >>> >>> >>> On Fri, Aug 5, 2011 at 8:58 PM, Jesse McConnell >>> <[email protected]> wrote: >>>> You should just have to call setCallBackHandlerClass(String name) on >>>> the login service, and then on login it is instantiated and set as the >>>> callback handler.. >>>> >>>> where are you looking to see the behavior you are? >>>> >>>> cheers, >>>> jesse >>>> >>>> -- >>>> jesse mcconnell >>>> [email protected] >>>> >>>> >>>> >>>> On Fri, Aug 5, 2011 at 12:48, Todor Boev <[email protected]> wrote: >>>>> Hi, >>>>> >>>>> I am trying to set a custom JAAS Callback as instructed in >>>>> >>>>> http://wiki.eclipse.org/Jetty/Tutorial/JAAS#Using_the_CallbackHandler >>>>> >>>>> My callback is never instantiated or called. I examined the code of >>>>> >>>>> org.eclipse.jetty.plus.jaas.JAASLoginService >>>>> >>>>> and discovered that it does not use the callback setting at all. In >>>>> the login() method it simply creates an anonymous Callback instance >>>>> and uses that. So it seems there is simply no way for me to use my >>>>> callback and the documentation is wrong. >>>>> >>>>> Can you please tell me if there is a way to get my callback >>>>> instantiated and called? >>>>> >>>>> Regards, >>>>> Todor >>>>> _______________________________________________ >>>>> jetty-users mailing list >>>>> [email protected] >>>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>>>> >>>> _______________________________________________ >>>> jetty-users mailing list >>>> [email protected] >>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> > _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
