Blame view

frontend/config/eauth.php 1.3 KB
5dd435a4   Timur Kastemirov   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  <?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.
              ],
          ],
      ];