Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » missing something in my RAP/JAAS testing site
missing something in my RAP/JAAS testing site [message #645381] Thu, 16 December 2010 21:13 Go to next message
Tom H is currently offline Tom H
Messages: 136
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

Re: missing something in my RAP/JAAS testing site [message #871041 is a reply to message #645381] Thu, 10 May 2012 15:48 Go to previous message
Martin Schubert is currently offline Martin Schubert
Messages: 1
Registered: May 2012
Junior Member
Hi Tom,
did you ever find out what the problem was? I'm having the same problem and I couldn't find any solution.
Previous Topic:DateTime Control Sizing Glitch using Chinese Locale
Next Topic:old business theme cannot work in Rap1.5M7(table or tree)
Goto Forum:
  


Current Time: Wed Oct 22 04:57:07 GMT 2014

Powered by FUDForum. Page generated in 0.02091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software