PHP Class yii\authclient\clients\GitHub

In order to use GitHub OAuth you must register your application at . Example application configuration: php 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'github' => [ 'class' => 'yii\authclient\clients\GitHub', 'clientId' => 'github_client_id', 'clientSecret' => 'github_client_secret', ], ], ] ... ]
See also: http://developer.github.com/v3/oauth/
See also: https://github.com/settings/applications/new
Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\authclient\OAuth2
Show 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 property

public $apiBaseUrl

$authUrl public property

public $authUrl

$tokenUrl public property

public $tokenUrl