missing something in my RAP/JAAS testing site [message #645381] |
Thu, 16 December 2010 21:13 |
Tom H Messages: 139 Registered: July 2009 |
Senior Member |
|
|
I am trying to add a login to my RAP app, similar to the example in the tutorial;
http://wiki.eclipse.org/RAP/Equinox_Security_Integration
However my login diaglog never appears, it falls straight through to the LoginException
It is finding my LoginModule and calling login(), however it seems that the intialize() method gets null passed to it, during start-up;
public class DummyLoginModule implements javax.security.auth.spi.LoginModule {
...
public void initialize( Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options )
{
this.subject = subject;
System.out.println("callbackHandler is "+callbackHandler);
this.callbackHandler = callbackHandler;
}
This is always null. I presume that initialize is called during the RAP initialization? and depends on my plugin.xml.
Here is my plugin.xml, and i copied most of it from the example;
<extension
id="comptax1.rap.dummyLoginModule"
point="org.eclipse.equinox.security.loginModule">
<loginModule
class="comptax1.rap.DummyLoginModule"
description="Dummy LoginModule">
</loginModule>
</extension>
<extension
id="dummyCallbackHandler"
point="org.eclipse.equinox.security.callbackHandler">
<callbackHandler
class="comptax1.rap.DummyCallbackHandler">
</callbackHandler>
</extension>
<extension
point="org.eclipse.equinox.security.callbackHandlerMapping">
<callbackHandlerMapping
callbackHandlerId="dummyCallbackHandler"
configName="DUMMY">
</callbackHandlerMapping>
</extension>
<extension
id="view"
point="org.eclipse.core.runtime.applications">
<application
cardinality="singleton-global"
thread="main"
visible="true">
<run
class="comptax1.rap.Application">
</run>
</application>
</extension>
the demo works ok, so I assume that my target is set correctly.
[Updated on: Thu, 16 December 2010 21:15] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01855 seconds