Apache OAK might also run in an OSGi environment.
It would be nice to have OAK supporting JAAS based authentication as provided by Apache Felix in FELIX-3705.
attaching simple patch
I have attached a simple patch that will allow to leverage the features as for FELIX-3705.
I will put some basic documentation in .
I should also remark that is not needed to export the login modules in the oak-core as previously stated by me.
I have checked this with Chetan Mehrotra and he point me out the right approach. Apologies for misleading...
ok... i will move back the loginmodules in that case.
applied patch and additionally added the ldap-login module.
as discussed i moved at the same time the the login module implementations (and associated classes and tests) back to internal packages that are not exported.
I changed the import for org.apache.felix.jaas.boot package to DynamicImport-Package as its an optional dependency and required if JAAS OSGi related logic is triggered (Rev 1458645)