%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/water/vendor/yiisoft/yii2-authclient/src/clients/ |
Upload File : |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\authclient\clients;
/**
* GoogleHybrid is an enhanced version of the [[Google]], which uses Google+ hybrid sign-in flow,
* which relies on embedded JavaScript code to generate a sign-in button and handle user authentication dialog.
*
* Example application configuration:
*
* ```php
* 'components' => [
* 'authClientCollection' => [
* 'class' => 'yii\authclient\Collection',
* 'clients' => [
* 'google' => [
* 'class' => 'yii\authclient\clients\GoogleHybrid',
* 'clientId' => 'google_client_id',
* 'clientSecret' => 'google_client_secret',
* ],
* ],
* ]
* // ...
* ]
* ```
*
* Note: Google+ hybrid relies heavily on client-side JavaScript during authorization process, do not attempt to
* obtain authorization code using [[buildAuthUrl()]] unless you absolutely sure, what you are doing.
*
* JavaScript button itself generated by [[yii\authclient\widgets\GooglePlusButton]] widget. If you are using
* [[yii\authclient\widgets\AuthChoice]] it will appear automatically. Otherwise you need to add it into your page manually.
* You may customize its appearance using 'widget' key at [[viewOptions]]:
*
* ```php
* 'google' => [
* // ...
* 'viewOptions' => [
* 'widget' => [
* 'class' => 'yii\authclient\widgets\GooglePlusButton',
* 'buttonHtmlOptions' => [
* 'data-approvalprompt' => 'force'
* ],
* ],
* ],
* ],
* ```
*
* @see Google
* @see \yii\authclient\widgets\GooglePlusButton
* @see https://developers.google.com/+/web/signin
*
* @author Paul Klimov <klimov.paul@gmail.com>
* @since 2.0.4
*/
class GoogleHybrid extends Google
{
/**
* {@inheritdoc}
*/
public $validateAuthState = false;
/**
* {@inheritdoc}
*/
protected function defaultReturnUrl()
{
return 'postmessage';
}
/**
* {@inheritdoc}
*/
protected function defaultViewOptions()
{
return [
'widget' => [
'class' => 'yii\authclient\widgets\GooglePlusButton'
],
];
}
}