Hello all,

I'm trying to implement a custom UserAuthenticationFactory.  I can see the service in the Felix Services console. It has a service.ranking of 7000. I can also see the OOB UserAuthenticationFactoryImpl service with no service ranking specified.

When I make a request, my corresponding CustomAuthenticationHandler(Sling) can pull the credentials out of the request. My CustomLoginModule is able to get those credentials.  I've cribbed the implementation of GetUserAuthentication() from LoginModuleImpl.  When I call this, I can see the call retrieve a UserAuthenticationFactory always returns the OOB UserAuthenticationFactoryImpl.  If I step into the call, I can see in the WhiteboardUserAuthenticationFactory receives a list of two possible factory Services from getServices()(:48) which include both the OOTB UAF and my custom UAF. But the order of this list does not reflect any service ranking, so the OOTB UAF is always returned first.

Is there another configuration I should be doing? I'm currently on 1.6.8.  I could not find any JIRA tickets that would address this, but then again my JIRA-foo isn't the best.

Much appreciated,

Marc Davenport

Reply via email to