eauth.php 2.74 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.
            ],
            'linkedin_oauth2' => [
                // register your app here: https://www.linkedin.com/secure/developer
                'class'        => 'nodge\eauth\services\LinkedinOAuth2Service',
                'clientId'     => '86uay6912iwzn7',
                'clientSecret' => 'IkOc8oMOlxkyNSfK',
                'title'        => 'LinkedIn (OAuth2)',
            ],
            'github'          => [
                // register your app here: https://github.com/settings/applications
                'class'        => 'nodge\eauth\services\GitHubOAuth2Service',
                'clientId'     => '1a72fc01be1ecca28c76',
                'clientSecret' => '188376ae0736133bdca9f4376a99a1cd2a6e6254',
            ],
            'steam'           => [
                'class'  => 'nodge\eauth\services\SteamOpenIDService',
                //'realm' => '*.example.org', // your domain, can be with wildcard to authenticate on subdomains.
                'apiKey' => 'ED8812C3AA509B94D4744AADBF4FDF49',
                // Optional. You can get it here: https://steamcommunity.com/dev/apikey
            ],
            'instagram'       => [
                // register your app here: https://instagram.com/developer/register/
                'class'        => 'nodge\eauth\services\InstagramOAuth2Service',
                'clientId'     => '7c3de0236bb4467bae58707012addce8',
                'clientSecret' => 'bfcf8a5eb47d4998b6e3dd573777a857',
            ],
        ],
    ];