PHP Class SocialiteProviders\Manager\OAuth2\AbstractProvider

Inheritance: extends Laravel\Socialite\Two\AbstractProvider, implements SocialiteProviders\Manager\Contracts\OAuth2\ProviderInterface, use trait SocialiteProviders\Manager\ConfigTrait
Show file Open project: socialiteproviders/manager Class Usage Examples

Protected Properties

Property Type Description
$credentialsResponseBody array

Public Methods

Method Description
serviceContainerKey ( $providerName )
user ( ) : SocialiteProviders\Manager\OAuth2\User

Protected Methods

Method Description
parseAccessToken ( string $body ) : string Get the access token from the token response body.
parseExpiresIn ( string $body ) : string Get the expires in from the token response body.
parseRefreshToken ( string $body ) : string Get the refresh token from the token response body.

Method Details

parseAccessToken() protected method

Get the access token from the token response body.
protected parseAccessToken ( string $body ) : string
$body string
return string

parseExpiresIn() protected method

Get the expires in from the token response body.
protected parseExpiresIn ( string $body ) : string
$body string
return string

parseRefreshToken() protected method

Get the refresh token from the token response body.
protected parseRefreshToken ( string $body ) : string
$body string
return string

serviceContainerKey() public static method

public static serviceContainerKey ( $providerName )

user() public method

public user ( ) : SocialiteProviders\Manager\OAuth2\User
return SocialiteProviders\Manager\OAuth2\User

Property Details

$credentialsResponseBody protected property

protected array $credentialsResponseBody
return array