Nessuna descrizione

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

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