BitWeb plugin for Id Card authentication ang signing.
php composer.phar require bitweb/id-card
# (When asked for a version, type `2.0.*`)
or add following to composer.json
"require": {
"bitweb/id-card": "2.0.*"
}
use BitWeb\IdCard\Authentication\IdCardAuthentication;
chdir(dirname(dirname(__DIR__)));
// Autoload classes
include 'vendor/autoload.php';
include 'init_autoloader.php';
Zend\Mvc\Application::init(require 'config/application.config.php');
$redirectUrl = urldecode($_GET["redirectUrl"]);
if (!IdCardAuthentication::isSuccessful()) {
$redirectUrl = '/id-card/no-card-found';
} else {
IdCardAuthentication::login();
}
$headerStr = 'Location: ' . $redirectUrl;
header($headerStr);
SSLVerifyClient require
SSLVerifyDepth 3
http://www.id.ee/public/Configuring_Apache_web_server_to_support_ID.pdf
Happy using