PHP Class yii\authclient\clients\Google

In order to use Google OAuth you must create a project at and setup its credentials at . In order to enable using scopes for retrieving user attributes, you should also enable Google+ API at Example application configuration: php 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'google' => [ 'class' => 'yii\authclient\clients\Google', 'clientId' => 'google_client_id', 'clientSecret' => 'google_client_secret', ], ], ] ... ]
See also: https://console.developers.google.com/project
Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\authclient\OAuth2
Mostra file Open project: yiisoft/yii2-authclient Class Usage Examples

Public Properties

Property Type Description
$apiBaseUrl
$authUrl
$tokenUrl

Public Methods

Method Description
init ( )

Protected Methods

Method Description
defaultName ( )
defaultTitle ( )
initUserAttributes ( )

Method Details

defaultName() protected method

protected defaultName ( )

defaultTitle() protected method

protected defaultTitle ( )

init() public method

public init ( )

initUserAttributes() protected method

protected initUserAttributes ( )

Property Details

$apiBaseUrl public_oe property

public $apiBaseUrl

$authUrl public_oe property

public $authUrl

$tokenUrl public_oe property

public $tokenUrl