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'
],
],
],
],
显示文件
Open project: yiisoft/yii2-authclient
Class Usage Examples
Public Properties
Protected Methods
Method Details
defaultReturnUrl()
protected method
defaultViewOptions()
protected method
Property Details
$validateAuthState public_oe property
public $validateAuthState |