PHP Class Overtrue\Socialite\Providers\QQProvider

Inheritance: extends AbstractProvider, implements Overtrue\Socialite\ProviderInterface
Mostrar archivo Open project: overtrue/socialite

Protected Properties

Property Type Description
$baseUrl string The base url of QQ API.
$openId string User openid.
$scopes array The scopes being requested.
$uid integer The uid of user authorized.
$unionId string User unionid.
$withUnionId boolean get token(openid) with unionid.

Public Methods

Method Description
getAccessToken ( string $code ) : AccessToken Get the access token for the given code.
parseAccessToken ( string $body ) : AccessToken Get the access token from the token response body.
withUnionId ( ) : self

Protected Methods

Method Description
getAuthUrl ( string $state ) : string Get the authentication URL for the provider.
getTokenFields ( string $code ) : array Get the Post fields for the token request.
getTokenUrl ( ) : string Get the token URL for the provider.
getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) : array Get the raw user for the given access token.
mapUserToObject ( array $user ) : Overtrue\Socialite\User Map the raw user array to a Socialite User instance.
removeCallback ( string $response ) : string Remove the fucking callback parentheses.

Method Details

getAccessToken() public method

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

getAuthUrl() protected method

Get the authentication URL for the provider.
protected getAuthUrl ( string $state ) : string
$state string
return string

getTokenFields() protected method

Get the Post fields for the token request.
protected getTokenFields ( string $code ) : array
$code string
return array

getTokenUrl() protected method

Get the token URL for the provider.
protected getTokenUrl ( ) : string
return string

getUserByToken() protected method

Get the raw user for the given access token.
protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) : array
$token Overtrue\Socialite\AccessTokenInterface
return array

mapUserToObject() protected method

Map the raw user array to a Socialite User instance.
protected mapUserToObject ( array $user ) : Overtrue\Socialite\User
$user array
return Overtrue\Socialite\User

parseAccessToken() public method

Get the access token from the token response body.
public parseAccessToken ( string $body ) : AccessToken
$body string
return Overtrue\Socialite\AccessToken

removeCallback() protected method

Remove the fucking callback parentheses.
protected removeCallback ( string $response ) : string
$response string
return string

withUnionId() public method

public withUnionId ( ) : self
return self

Property Details

$baseUrl protected_oe property

The base url of QQ API.
protected string $baseUrl
return string

$openId protected_oe property

User openid.
protected string $openId
return string

$scopes protected_oe property

The scopes being requested.
protected array $scopes
return array

$uid protected_oe property

The uid of user authorized.
protected int $uid
return integer

$unionId protected_oe property

User unionid.
protected string $unionId
return string

$withUnionId protected_oe property

get token(openid) with unionid.
protected bool $withUnionId
return boolean