On Thu, Jul 28, 2011 at 12:19 AM, Noel Portugal <[email protected]> wrote:
> Hi, I am running vysper 0.7 embedded into my application. I'm authenticating
> users against LDAP, but I noticed that only username and password a strings
> are being sent to
> @Override
> public boolean verifyCredentials(String username, String password,
> Object credentials) {
> Entity user = EntityImpl.parseUnchecked(username);
> return verifyCredentials(user, password, credentials);
> }
> Is there a way to get the full Entity at this point of the authentication
> (or authorization)? I want to get the resource so I can store that on a DB
> right after login. If not is there any other way to capture the resource
> right after login?
Sorry for the late response. In Vysper 0.7, UserAuthorization also contains:
boolean verifyCredentials(Entity jid, String passwordCleartext,
Object credentials);
That should give you the full entity, or am I missing something?
/niklas