Oops, my bad. Accidentally clicked send. Anyway, I've got 0.8-SNAPSHOT downloaded and compiled. I'm implementing UserAuthentication instead of UserAuthorization in 0.7. Here's the output from the logs when I specify [email protected] as the username:
--------------------------------------- 17:26:53,461 | DEBUG | org.apache.vysper.xml.decoder.XMPPContentHandler | Decoder writing stanza: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" to="yahoo.com" xml:lang="en" version="1.0"></stream:stream> 17:26:53,467 | INFO | com.test.vysper.auth.JDBCUserAuthorization | verifyCredntials 17:26:53,467 | INFO | com.test.vysper.auth.JDBCUserAuthorization | org.apache.vysper.xmpp.addressing.EntityImpl@8a030d6[node=user1,domain=localhost,resource=<null>,fullyQualifiedCached=<null>,bareEntityCached=<null>] --------------------------------------- I can see in the first line that it's sending to "yahoo.com". But in the Entity object, I still get the front portion of the username before the @ character. Is this the expected behavior? Thanks. On Sun, Aug 28, 2011 at 11:30 PM, Niklas Gustavsson <[email protected]> wrote: > On Sun, Aug 28, 2011 at 5:21 AM, Michael Lok <[email protected]> wrote: >> I'm implementing a custom verifyCredentials(String username, String >> passwordClear, Object credentials) in my authentication class. I've >> set my domain as "mychatbox.net" for testing purposes (the server's >> really located in my localhost FTTB). I'm trying to authenticate >> users by different email domains e.g. [email protected], >> [email protected], etc. However, upon printing out the username in >> verifyCredentials, I'm getting [email protected] and >> [email protected]. No matter what I try, I can't get the actual >> username keyed in at the client. >> >> Is there anything I'm missing out or is the username tied to the >> domain set at the server? > > It should not be. Could you please try with SVN trunk and see if you > get the same behavior? > > /niklas >
