PHP 클래스 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'
],
],
],
],
파일 보기
프로젝트 열기: yiisoft/yii2-authclient
1 사용 예제들
공개 프로퍼티들
보호된 메소드들
메소드 상세
defaultReturnUrl()
보호된 메소드
defaultViewOptions()
보호된 메소드
프로퍼티 상세
$validateAuthState 공개적으로 프로퍼티
public $validateAuthState |