Тайлбар байхгүй

Fabian Peter Hammerle 15e79ea2d3 phpunit: use executable in vendor/bin 8 жил өмнө
migrations 658639c376 Subject construct: expect identity instead of identity id 8 жил өмнө
tests 1b610b6873 tests: substitute ::class constants with strings to support php 5.4 8 жил өмнө
.gitignore ab9451933e init dummy 8 жил өмнө
.travis.yml 15e79ea2d3 phpunit: use executable in vendor/bin 8 жил өмнө
Authenticator.php d1c25ce54e Authenticator init: login 8 жил өмнө
LICENSE ab9451933e init dummy 8 жил өмнө
README.md 2629bbfef8 readme: added description 8 жил өмнө
Subject.php b9a991c9fb Subject findByDistinguishedName(): added missing static keyword 8 жил өмнө
composer.json 9d34bb4815 phpunit 5.1.* -> ^4.8 to support php 5.4 & 5.5 8 жил өмнө
phpunit.xml ab9451933e init dummy 8 жил өмнө

README.md

PHP version Build Status

yii2 extension for automatic login via TLS/SSL/HTTPS client certificates

Setup

1. Configure Webserver

apache

<VirtualHost example.hammerle.me:443>
    # ...

    SSLEngine on
    SSLCertificateFile /etc/somewhere/example-server-cert.pem
    SSLCertificateKeyFile /etc/restricted/example-server-key.pem

    SSLVerifyClient optional
    SSLVerifyDepth 1
    SSLCACertificateFile /etc/somewhere/example-client-cert-ca.pem
    SSLOptions +StdEnvVars
</VirtualHost>

2. Install Extension

composer require fphammerle/yii2-client-cert-auth

3. Enable Extension in Yii's Application Config

$config = [
    // ...
    'bootstrap' => ['clientCertAuth'],
    'components' => [
        // ...
        'clientCertAuth' => \fphammerle\yii2\auth\clientcert\Authenticator::className(),
    ],
    // ...
];