From: Florian F. <fl...@ep...> - 2012-03-08 14:23:19
|
Hey, Yes, I already figured this out. In the Documentation about auth&auth it was written that one has to set the extension point for the loginModule. So I thought it has to be set in my own product plugin. I already changed this and also found the reason for my problem. Now my product seems to work. Have to test it next week. Best regards and thanks for the help, Florian Am 08.03.2012 14:48, schrieb Kasemir, Kay: > Nochmal Moin: > > On 2/29/12 12:26 , "Florian Feldbauer"<fl...@ep...> wrote: >> To be able to set the extension points in my product plugin I have >> listed these two plugins as dependencies. Maybe this causing the error? >> Can anyone help me solving this problem? > Not sure what exactly you mean by "<I> set the extension points in my > product plugin". > > If you simply include the plugin org.csstudio.platform.jaasAuthentication, > its plugin.xml will tell Eclipse that it has a "loginModule" for > the extension point org.csstudio.auth.loginModule: > > osgi> pt -v org.csstudio.auth.loginModule > Extension point: org.csstudio.auth.loginModule [from org.csstudio.auth] > > Extension(s): > ------------------- > null [from org.csstudio.platform.jaasAuthentication] > <loginModule> > class = > org.csstudio.platform.internal.jaasauthentication.JaasLoginModule > id = org.csstudio.security.jaasAuthentication.jaasLoginModule > name = JAAS Login Module > </loginModule> > > > > Likewise, if you simply include the plugin > org.csstudio.sns.dummyAuthorization, > its plugin.xml will tell Eclipse that it has an authentication provider. > > You don't need to > 1) Add those plugins to your product > 2) _and_ set the extension points in your product plugin > Just 1) is all you do. > > So maybe by doing 2) as well you actually registered the same loginModule > twice, and that's what's causing the error > "Found multiple login modules" > > -Kay > > |