19 package org.turro.alliance.auth;
21 import java.security.NoSuchAlgorithmException;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import org.turro.string.Strings;
25 import org.turro.alliance.contact.AllianceContact;
26 import org.turro.alliance.db.AlliancePU;
27 import org.turro.alliance.db.entities.AxContact;
28 import org.turro.alliance.service.AxConstants;
29 import org.turro.alliance.service.AxClient;
30 import org.turro.crypto.Digest;
31 import org.turro.external.ElephantAuthentication;
32 import org.turro.external.IElephantAuthentication;
33 import org.turro.plugin.contacts.IContact;
34 import org.turro.sql.SqlClause;
35 import org.turro.ws.WsMember;
36 import org.turro.ws.service.server.Clients;
59 if(!Strings.isBlank(pass))
try {
61 .where().equal(
"c.contactId.memberId", member.
getMemberId())
62 .and().equal(
"c.active",
true)
63 .and().equal(
"c.email", login)
64 .and().equal(
"c.passdig", Digest.sha256(pass).hexString())
70 }
catch (NoSuchAlgorithmException ex) {
boolean accepts(Object extra)
boolean requiresProcedence()
IContact doLogin(String login, String pass, Object extra)
static final String CLIENT_SERVICE