Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | |
return |
abstract protected getAuthUrl ( string $state ) : string | ||
$state | string | |
return | string |
protected getHttpClient ( ) : |
||
return |
public getRedirectUrl ( ) : string | ||
return | string |
public getRequest ( ) : |
||
return |
protected getTokenFields ( string $code ) : array | ||
$code | string | |
return | array |
abstract protected getTokenUrl ( ) : string | ||
return | string |
abstract protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) : array | ||
$token | Overtrue\Socialite\AccessTokenInterface | |
return | array |
protected hasInvalidState ( ) : boolean | ||
return | boolean |
protected isStateless ( ) : boolean | ||
return | boolean |
abstract protected mapUserToObject ( array $user ) : Overtrue\Socialite\User | ||
$user | array | |
return | Overtrue\Socialite\User |
protected parseAccessToken ( Psr\Http\Message\StreamInterface | array $body ) : |
||
$body | Psr\Http\Message\StreamInterface | array | |
return |
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 Config,Overtrue\Socialite $config | ||
return |
protected array $parameters | ||
return | array |
protected Request,Symfony\Component\HttpFoundation $request | ||
return |
protected string $scopeSeparator | ||
return | string |
protected bool $stateless | ||
return | boolean |