@PathParam("tenantId") String aTenantId,
@PathParam("username") String aUsername,
@PathParam("password") String aPassword,
@Context Request aRequest) {
UserDescriptor userDescriptor =
this.identityApplicationService()
.authenticateUser(
new AuthenticateUserCommand(
aTenantId,
aUsername,
aPassword));
if (userDescriptor.isNullDescriptor()) {
throw new WebApplicationException(Response.Status.NOT_FOUND);
}
Response response = this.userDescriptorResponse(aRequest, userDescriptor);