Hello,
I had a question regarding the XMPP Client & server side domain
configuration.
=== SERVER SIDE ===
OpenStorageProviderRegistry providerRegistry = new
OpenStorageProviderRegistry();
// custom authentication provider
providerRegistry.add(new MangoAppsAuthentication());
// a roster manager is also required
providerRegistry.add(new MemoryRosterManager());
XMPPServer server = new XMPPServer("xmpp.mangoapps.com");
...
My class MangoAppsAuthentication
implements (org.apache.vysper.xmpp.authorization.UserAuthorization)
=== CLIENT SIDE ====
I use a XMPP Client (Pidgin) with the following config parms
Protocol: XMPP
Username: mohitb
Domain: mangospring.com
Resource: chatClient
Password: mypassword
Additionally i set the port and server to connect to.
When i try to login through the XMPP Client the call back method
boolean
*verifyCredentials<http://www.jarvana.com/jarvana/view/org/apache/vysper/vysper-core/0.7/vysper-core-0.7-javadoc.jar%21/org/apache/vysper/xmpp/authorization/UserAuthorization.html#verifyCredentials%28java.lang.String,%20java.lang.String,%20java.lang.Object%29>
*(java.lang.String username, java.lang.String passwordCleartext,
java.lang.Object credentials)
gets the username as [email protected] when instead i had
configured [email protected] on the client.
Does this mean i will need to have an instance of XMPP Server per domain? I
am not sure i get this behavior of the XMPP Clients?
Not sure what am i missing.
--
Thanks & Regards,
Mohit Bhonde