Свойство | Тип | Описание | |
---|---|---|---|
$clientId | string | The client ID. | |
$clientSecret | string | The client secret. | |
$config | The configuration. | ||
$encodingType | The type of the encoding in the query. | ||
$parameters | array | The custom parameters to be sent with the request. | |
$redirectUrl | string | The redirect URL. | |
$request | The HTTP request instance. | ||
$scopeSeparator | string | The separating character for the requested scopes. | |
$scopes | array | The scopes being requested. | |
$stateless | boolean | Indicates if the session state should be utilized. |
Метод | Описание | |
---|---|---|
__construct ( |
Create a new provider instance. | |
getAccessToken ( string $code ) : |
Get the access token for the given code. | |
getRedirectUrl ( ) : string | Return the redirect url. | |
getRequest ( ) : |
Get the request instance. | |
redirect ( string $redirectUrl = null ) : |
Redirect the user of the application to the provider's authentication screen. | |
scopes ( array $scopes ) | Set the scopes of the requested access. | |
setRedirectUrl ( string $redirectUrl ) | Set redirect url. | |
setRequest ( |
Set the request instance. | |
stateless ( ) | Indicates that the provider should operate as stateless. | |
user ( Overtrue\Socialite\AccessTokenInterface $token = null ) | ||
with ( array $parameters ) | Set the custom parameters of the request. | |
withRedirectUrl ( string $redirectUrl ) | Set redirect url. |
Метод | Описание | |
---|---|---|
arrayItem ( array $array, string $key, mixed $default = null ) : mixed | Return array item by key. | |
buildAuthUrlFromBase ( string $url, string $state ) : string | Get the authentication URL for the provider. | |
formatScopes ( array $scopes, string $scopeSeparator ) : string | Format the given scopes. | |
getAuthUrl ( string $state ) : string | Get the authentication URL for the provider. | |
getCode ( ) : string | Get the code from the request. | |
getCodeFields ( string | null $state = null ) : array | Get the GET parameters for the code request. | |
getHttpClient ( ) : |
Get a fresh instance of the Guzzle HTTP client. | |
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. | |
hasInvalidState ( ) : boolean | Determine if the current request / session has a mismatching "state". | |
isStateless ( ) : boolean | Determine if the provider is operating as stateless. | |
mapUserToObject ( array $user ) : Overtrue\Socialite\User | Map the raw user array to a Socialite User instance. | |
parseAccessToken ( Psr\Http\Message\StreamInterface | array $body ) : |
Get the access token from the token response body. | |
usesState ( ) : boolean | Determine if the provider is operating with state. |
public getAccessToken ( string $code ) : |
||
$code | string | |
Результат |
abstract protected getAuthUrl ( string $state ) : string | ||
$state | string | |
Результат | string |
protected getHttpClient ( ) : |
||
Результат |
public getRedirectUrl ( ) : string | ||
Результат | string |
public getRequest ( ) : |
||
Результат |
protected getTokenFields ( string $code ) : array | ||
$code | string | |
Результат | array |
abstract protected getTokenUrl ( ) : string | ||
Результат | string |
abstract protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) : array | ||
$token | Overtrue\Socialite\AccessTokenInterface | |
Результат | array |
protected hasInvalidState ( ) : boolean | ||
Результат | boolean |
protected isStateless ( ) : boolean | ||
Результат | boolean |
abstract protected mapUserToObject ( array $user ) : Overtrue\Socialite\User | ||
$user | array | |
Результат | Overtrue\Socialite\User |
protected parseAccessToken ( Psr\Http\Message\StreamInterface | array $body ) : |
||
$body | Psr\Http\Message\StreamInterface | array | |
Результат |
public setRedirectUrl ( string $redirectUrl ) | ||
$redirectUrl | string |
public setRequest ( |
||
$request |
public stateless ( ) |
public user ( Overtrue\Socialite\AccessTokenInterface $token = null ) | ||
$token | Overtrue\Socialite\AccessTokenInterface |
public withRedirectUrl ( string $redirectUrl ) | ||
$redirectUrl | string |
protected string $clientSecret | ||
Результат | string |
protected Config,Overtrue\Socialite $config | ||
Результат |
protected array $parameters | ||
Результат | array |
protected Request,Symfony\Component\HttpFoundation $request | ||
Результат |
protected string $scopeSeparator | ||
Результат | string |
protected bool $stateless | ||
Результат | boolean |