Sen descrición

Fabian Peter Hammerle 80d6da421c travis: install composer-asset-plugin %!s(int64=8) %!d(string=hai) anos
migrations 658639c376 Subject construct: expect identity instead of identity id %!s(int64=8) %!d(string=hai) anos
tests d1c25ce54e Authenticator init: login %!s(int64=8) %!d(string=hai) anos
.gitignore ab9451933e init dummy %!s(int64=8) %!d(string=hai) anos
.travis.yml 80d6da421c travis: install composer-asset-plugin %!s(int64=8) %!d(string=hai) anos
Authenticator.php d1c25ce54e Authenticator init: login %!s(int64=8) %!d(string=hai) anos
LICENSE ab9451933e init dummy %!s(int64=8) %!d(string=hai) anos
README.md 2629bbfef8 readme: added description %!s(int64=8) %!d(string=hai) anos
Subject.php 7004c04829 Subject model: added findByDistinguishedName(dn) %!s(int64=8) %!d(string=hai) anos
composer.json 74cd0c2931 added composer description %!s(int64=8) %!d(string=hai) anos
phpunit.xml ab9451933e init dummy %!s(int64=8) %!d(string=hai) anos

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(),
    ],
    // ...
];