PHP Class yii\authclient\clients\GoogleHybrid

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', ], ], ] ... ] 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 also: Google
See also: yii\authclient\widgets\GooglePlusButton
See also: https://developers.google.com/+/web/signin
Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends Google
ファイルを表示 Open project: yiisoft/yii2-authclient Class Usage Examples

Public Properties

Property Type Description
$validateAuthState

Protected Methods

Method Description
defaultReturnUrl ( )
defaultViewOptions ( )

Method Details

defaultReturnUrl() protected method

protected defaultReturnUrl ( )

defaultViewOptions() protected method

protected defaultViewOptions ( )

Property Details

$validateAuthState public_oe property

public $validateAuthState