PHP Class Overtrue\Socialite\Providers\GitHubProvider

Inheritance: extends AbstractProvider, implements Overtrue\Socialite\ProviderInterface
Show file Open project: overtrue/socialite

Protected Properties

Property Type Description
$scopes array The scopes being requested.

Protected Methods

Method Description
getAuthUrl ( $state )
getEmailByToken ( string $token ) : string | null Get the email for the given access token.
getRequestOptions ( ) : array Get the default options for an HTTP request.
getTokenUrl ( )
getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token )
mapUserToObject ( array $user )

Method Details

getAuthUrl() protected method

protected getAuthUrl ( $state )

getEmailByToken() protected method

Get the email for the given access token.
protected getEmailByToken ( string $token ) : string | null
$token string
return string | null

getRequestOptions() protected method

Get the default options for an HTTP request.
protected getRequestOptions ( ) : array
return array

getTokenUrl() protected method

protected getTokenUrl ( )

getUserByToken() protected method

protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token )
$token Overtrue\Socialite\AccessTokenInterface

mapUserToObject() protected method

protected mapUserToObject ( array $user )
$user array

Property Details

$scopes protected property

The scopes being requested.
protected array $scopes
return array