I am using the HybridAuth and HybridUser Providers to do custom authentication against a third-party API. If it succeeds, you are granted access, even if you don’t exist in the Openfire database. If it fails, then the Default Providers are used to authenticate you against the Openfire database. That much works.
Here’s the trickier part. I want to have a program listen on the other end of the chat, and that program should be accessible to all users automatically. I’ve tried creating a group and enabled contact list group sharing for all users. I’ve also tried the Subscription plugin, accepting all subscription requests.
However, the program that is supposed to be connected always appears as offline. In fact, in the client sessions list, it appears with a priority of 0, which I suspect is a bad thing.
In error.log, I see NPE’s and UnsupportedOperationExceptions from HybridUserProvider, so I’m pretty sure it’s something I just don’t understand about how to implement my own UserProvider. Is there some sample code or article that could provide some insight? I’m not sure why the errors come out of HybridUserProvider, rather than my own custom UserProvider, but I have to believe that it’s related to my failure to fully or properly implement the interface.