$componentAppId
$componentAppId : string
Component AppId.
Class WeChatProvider.
None found |
$credentials : \EasyWeChat\OpenPlatform\AccessToken|array
None found |
None found |
None found |
None found |
None found |
$withCountryCode : boolean
Return country code instead of country name.
None found |
$component : \Overtrue\Socialite\WeChatComponentInterface
None found |
None found |
$request : \Symfony\Component\HttpFoundation\Request
The HTTP request instance.
None found |
None found |
None found |
$accessToken : \Overtrue\Socialite\AccessTokenInterface
None found |
None found |
None found |
$scopeSeparator : string
The separating character for the requested scopes.
None found |
$encodingType : integer
The type of the encoding in the query.
None found |
None found |
None found |
None found |
__construct(\Symfony\Component\HttpFoundation\Request $request, string $clientId, string $clientSecret, string|null $redirectUrl = null)
Create a new provider instance.
\Symfony\Component\HttpFoundation\Request | $request | |
string | $clientId | |
string | $clientSecret | |
string|null | $redirectUrl |
None found |
withCountryCode() : $this
Return country code instead of country name.
None found |
component(\Overtrue\Socialite\WeChatComponentInterface $component) : $this
WeChat OpenPlatform 3rd component.
\Overtrue\Socialite\WeChatComponentInterface | $component |
None found |
getAccessToken(string $code) : \Overtrue\Socialite\AccessTokenInterface
Get the access token for the given code.
string | $code |
None found |
redirect(string $redirectUrl = null) : \Symfony\Component\HttpFoundation\RedirectResponse
Redirect the user of the application to the provider's authentication screen.
string | $redirectUrl |
None found |
user(\Overtrue\Socialite\AccessTokenInterface $token = null) : \Overtrue\Socialite\User
Get the User instance for the authenticated user.
\Overtrue\Socialite\AccessTokenInterface | $token |
None found |
setRedirectUrl(string $redirectUrl) : $this
Set redirect url.
string | $redirectUrl |
None found |
withRedirectUrl(string $redirectUrl) : $this
Set redirect url.
string | $redirectUrl |
None found |
None found |
setAccessToken(\Overtrue\Socialite\AccessTokenInterface $accessToken) : $this
\Overtrue\Socialite\AccessTokenInterface | $accessToken |
None found |
scopes(array $scopes) : $this
Set the scopes of the requested access.
array | $scopes |
None found |
setRequest(\Symfony\Component\HttpFoundation\Request $request) : $this
Set the request instance.
\Symfony\Component\HttpFoundation\Request | $request |
None found |
getRequest() : \Symfony\Component\HttpFoundation\Request
Get the request instance.
None found |
stateless() : $this
Indicates that the provider should operate as stateless.
None found |
with(array $parameters) : $this
Set the custom parameters of the request.
array | $parameters |
None found |
None found |
getCodeFields(string|null $state = null) : array
Get the GET parameters for the code request.
string|null | $state |
None found |
None found |
getTokenFields(string $code) : array
Get the POST fields for the token request.
string | $code |
None found |
None found |
None found |
getAuthUrl(string $state) : string
Get the authentication URL for the provider.
string | $state |
None found |
buildAuthUrlFromBase(string $url, string $state) : string
Get the authentication URL for the provider.
string | $url | |
string | $state |
None found |
getUserByToken(\Overtrue\Socialite\AccessTokenInterface $token) : array
Get the raw user for the given access token.
\Overtrue\Socialite\AccessTokenInterface | $token |
None found |
mapUserToObject(array $user) : \Overtrue\Socialite\User
Map the raw user array to a Socialite User instance.
array | $user |
None found |
removeCallback(mixed $response) : string
Remove the fucking callback parentheses.
mixed | $response |
None found |
formatScopes(array $scopes, string $scopeSeparator) : string
Format the given scopes.
array | $scopes | |
string | $scopeSeparator |
None found |
hasInvalidState() : boolean
Determine if the current request / session has a mismatching "state".
None found |
parseAccessToken(\Psr\Http\Message\StreamInterface|array $body) : \Overtrue\Socialite\AccessTokenInterface
Get the access token from the token response body.
\Psr\Http\Message\StreamInterface|array | $body |
None found |
None found |
getHttpClient() : \GuzzleHttp\Client
Get a fresh instance of the Guzzle HTTP client.
None found |
usesState() : boolean
Determine if the provider is operating with state.
None found |
isStateless() : boolean
Determine if the provider is operating as stateless.
None found |
arrayItem(array $array, string $key, mixed $default = null) : mixed
Return array item by key.
array | $array | |
string | $key | |
mixed | $default |
None found |
makeState() : string|boolean
Put state to session storage and return it.
None found |