eauth.php 1.3 KB
<?php
    return [
        'class'       => 'nodge\eauth\EAuth',
        'popup'       => true,
        'cache'       => false,
        'cacheExpire' => 0,
        'httpClient'  => [
            // uncomment this to use streams in safe_mode
            //'useStreamsFallback' => true,
        ],
        'services'    => [
            'google'          => [
                // register your app here: https://code.google.com/apis/console/
                'class'        => 'nodge\eauth\services\GoogleOAuth2Service',
                'clientId'     => '857343172443-th52trcqruo6pct71hmn72pud8ob9c9o.apps.googleusercontent.com',
                'clientSecret' => 'PgQIYSOjEUm4lffk_o7zMhxZ',
                'title'        => 'Google',
            ],
            'facebook'        => [
                // register your app here: https://developers.facebook.com/apps/
                'class'        => 'nodge\eauth\services\FacebookOAuth2Service',
                'clientId'     => '1453788021358149',
                'clientSecret' => '97dc7b9863b482dce6c6e7618bda9738',
            ],
            'yahoo'           => [
                'class' => 'nodge\eauth\services\YahooOpenIDService',
                //'realm' => '*.example.org', // your domain, can be with wildcard to authenticate on subdomains.
            ],
        ],
    ];