I'm trying to configure remote repository over davex and am able to connect agains the default standalone jackrabbit or webapp.
The problem comes when I try to configure repository security. I have configured custom loginModule (implementation of org.apache.jackrabbit.core.security.authentication.AbstractLoginModule). Login module works fine with the RMI remoting layer. Accessing /server context in browser triggers authentication and I'm able to log in, but no such option in the API. With the RMI API I am used to get Repository instance and credentials are needed when Session object is requested. Here the credentials are required infront and there is no way to specify credentials (in JcrUtils.getRepository) or it is not documented. org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.getRepositoryDescriptors uses getClient(null) that causes in no credentials supplied to the HttpClient and org.apache.jackrabbit.webdav.DavException:Unauthorized.