Skip to main content


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 HFriend
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

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 SchubertFriend
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:Deploy standalone RAP
Next Topic:White page after redirection
Goto Forum:
  


Current Time: Thu Apr 18 01:53:12 GMT 2024

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

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

Back to the top