import javax.security.auth.login.LoginException;
import javax.security.auth.spi.LoginModule;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import org.argeo.api.cms.CmsLog;
+import org.argeo.cms.auth.ident.IdentClient;
import org.argeo.cms.internal.kernel.Activator;
-import org.argeo.ident.IdentClient;
/** Use an ident service to identify. */
public class IdentLoginModule implements LoginModule {
- private final static Log log = LogFactory.getLog(IdentLoginModule.class);
+ private final static CmsLog log = CmsLog.getLog(IdentLoginModule.class);
private CallbackHandler callbackHandler = null;
private Map<String, Object> sharedState = null;
public boolean login() throws LoginException {
if (callbackHandler == null)
return false;
- HttpRequestCallback httpCallback = new HttpRequestCallback();
+ RemoteAuthCallback httpCallback = new RemoteAuthCallback();
try {
callbackHandler.handle(new Callback[] { httpCallback });
} catch (IOException e) {
} catch (UnsupportedCallbackException e) {
return false;
}
- HttpRequest request = httpCallback.getRequest();
+ RemoteAuthRequest request = httpCallback.getRequest();
if (request == null)
return false;
IdentClient identClient = Activator.getIdentClient(request.getRemoteAddr());