PHP code example of chunlaw / yii2-azure-authclient

1. Go to this page and download the library: Download chunlaw/yii2-azure-authclient library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chunlaw / yii2-azure-authclient example snippets


return [
    'components' => [
        'authClientCollection' => [
            'class' => 'yii\authclient\Collection',
            'clients' => array_filter([
                'azure' => [
                    'class' => 'chunlaw\authclient\Azure',
                    'returnUrl' => '<azure_return_url>',
                    'clientId' => '<azure_client_id>',
                    'clientSecret' => '<azure_client_secret>'
                ],
                'google' => [
                    'class' => 'yii\authclient\clients\Google',
                    'returnUrl' => '<google_return_url>',
                    'clientId' => '<google_client_id>',
                    'clientSecret' => '<google_client_secret>',
                ],
				// etc.
            ]),
        ],
    ],
    // ...
];