Hi Chetan Thanks for the detailed answer. I was not aware of the JAAS webconsole plugin I asked bnd to add the header I will double check that Kind regards
Envoyé de mon smartphone BlackBerry 10 sur le réseau Orange. Message d'origine De: Chetan Mehrotra Envoyé: jeudi 16 juin 2016 08:34 À: [email protected] Répondre à: [email protected] Objet: Re: Problems while creating custom JAAS LoginModule Hi Jerome, Do you have webconsole installed? If yes can you check whats shown in http://localhost:8080/system/console/status-jaas (Status -> JAAS) Looking at your details it appears that 'Jaas-ModuleClass' header is not found in any bundle listing that class. Can you confirm by checking the generated MANIFEST.MF of your bundle if bnd instruction is working i.e. required header is getting added Chetan Mehrotra On Wed, Jun 15, 2016 at 6:18 PM, deadbrain <[email protected]> wrote: > Hi all Felix gurus, > > I am using latest released bundles (5.4 distro and up to date > LogService, JAAS and others bundles). > > I wish to provide my own authentication/authorization system while using > the Felix JAAS support. > > I develop with BndTools on Eclipse Luna 4.4 and standard OSGi > annotations set (org.osgi...). > > I developed a small Gogo task to test my code and I am quickly stuck > with a LoginException wrapping an AssertionError thrown from > BundleLoginCreator (from Felix JAAS support classes) saying that No > bundle exists to create LoginModule with my custom class 's name. > > It seems (looking at the source code) that this class uses some metadata > stored in a map to identofy the LoginModule / bundle . Right , but it > seems that my bundle does not provide this metadata . > > Have you an idea about the why ? > > I registered a cfg file for the factory : > /taipan-jaas/load/org.apache.felix.jaas.Configuration.factory-macs-jaas.cfg > > I can see that everything seems ok in the Webconsole. > > I used bnd to add header metainformation Jaas-ModuleClass telling what > is the LoginModule to be used. > > My client code will pick up the Felix JAAS factory and custom > CallbackHandler then login through the logincontext. This portion of > code seems ok, my problems live with the metadata used by the > BundleLoginCreator. > > > Your help would be helpful > > Kind regards > > Jerome > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

