PHP Class Overtrue\Socialite\Providers\GoogleProvider

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

Protected Properties

Property Type Description
$scopeSeparator string The separating character for the requested scopes.
$scopes array The scopes being requested.

Public Methods

Method Description
getAccessToken ( string $code ) : string Get the access token for the given code.

Protected Methods

Method Description
getAuthUrl ( $state )
getTokenFields ( string $code ) : array Get the POST fields for the token request.
getTokenUrl ( )
getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token )
mapUserToObject ( array $user )

Method Details

getAccessToken() public method

Get the access token for the given code.
public getAccessToken ( string $code ) : string
$code string
return string

getAuthUrl() protected method

protected getAuthUrl ( $state )

getTokenFields() protected method

Get the POST fields for the token request.
protected getTokenFields ( string $code ) : array
$code string
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

$scopeSeparator protected_oe property

The separating character for the requested scopes.
protected string $scopeSeparator
return string

$scopes protected_oe property

The scopes being requested.
protected array $scopes
return array