bitweb / id-card
BitWeb extension for Estonian ID-Card authentication and signing.
2.0.1
2014-04-29 14:25 UTC
Requires
- php: >=5.3.3
- zendframework/zend-soap: >=2.2.2
Requires (Dev)
- phpunit/phpunit: 3.7.*
- satooshi/php-coveralls: dev-master
- sebastianbergmann/phpcov: 1.1.0
This package is auto-updated.
Last update: 2024-12-21 20:35:54 UTC
README
BitWeb plugin for Id Card authentication ang signing.
Usage:
Adding lib
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.*" }
Integrating with apache
Add id-card folder into your public folder
The folder should contain index.php with following contents:
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);
In same folder should exist .htaccess:
SSLVerifyClient require
SSLVerifyDepth 3
Now your link in application should point to this index.php with query parameter redirectUrl.
Adding id card support into development environment
http://www.id.ee/public/Configuring_Apache_web_server_to_support_ID.pdf
Happy using