import org.argeo.cms.internal.auth.CmsSessionImpl;
import org.argeo.cms.internal.runtime.CmsContextImpl;
import org.argeo.cms.internal.auth.CmsSessionImpl;
import org.argeo.cms.internal.runtime.CmsContextImpl;
import org.osgi.service.useradmin.Authorization;
/** Use the HTTP session as the basis for authentication. */
import org.osgi.service.useradmin.Authorization;
/** Use the HTTP session as the basis for authentication. */
} catch (IOException e) {
throw new LoginException("Cannot handle http callback: " + e.getMessage());
} catch (UnsupportedCallbackException e) {
return false;
}
} catch (IOException e) {
throw new LoginException("Cannot handle http callback: " + e.getMessage());
} catch (UnsupportedCallbackException e) {
return false;
}
if (authorization == null) {// search by session ID
RemoteAuthSession httpSession = request.getSession();
if (httpSession == null) {
if (authorization == null) {// search by session ID
RemoteAuthSession httpSession = request.getSession();
if (httpSession == null) {
if (log.isDebugEnabled())
log.debug("Client certificate " + certDn + " verified by servlet container");
} // Reverse proxy verified the client certificate
if (log.isDebugEnabled())
log.debug("Client certificate " + certDn + " verified by servlet container");
} // Reverse proxy verified the client certificate
- String clientDnHttpHeader = CmsContextImpl.getCmsContext().getCmsState()
- .getDeployProperty(CmsConstants.HTTP_PROXY_SSL_DN);
+ String clientDnHttpHeader = CmsStateImpl.getDeployProperty(CmsContextImpl.getCmsContext().getCmsState(),
+ CmsDeployProperty.HTTP_PROXY_SSL_HEADER_DN);
if (clientDnHttpHeader != null) {
String certDn = req.getHeader(clientDnHttpHeader);
// TODO retrieve more cf. https://httpd.apache.org/docs/current/mod/mod_ssl.html
if (clientDnHttpHeader != null) {
String certDn = req.getHeader(clientDnHttpHeader);
// TODO retrieve more cf. https://httpd.apache.org/docs/current/mod/mod_ssl.html