Documentation

Client
in package

Table of Contents

Constants

AUTHORIZATION_CODE  = 'authorization_code'
CODE  = 'code'
REFRESH_TOKEN  = 'refresh_token'
REQUEST_URI  = 'request_uri'
STATE  = 'state'

Properties

$oauth2  : AbstractProvider
$storage  : TokenStorage
$token  : AccessTokenInterface|null

Methods

__construct()  : mixed
getHeaders()  : array<string|int, mixed>
getToken()  : AccessTokenInterface|null
handleRedirect()  : void
isReady()  : bool

Constants

AUTHORIZATION_CODE

public mixed AUTHORIZATION_CODE = 'authorization_code'

REFRESH_TOKEN

public mixed REFRESH_TOKEN = 'refresh_token'

REQUEST_URI

public mixed REQUEST_URI = 'request_uri'

STATE

public mixed STATE = 'state'

Properties

$oauth2

protected AbstractProvider $oauth2

$token

private AccessTokenInterface|null $token

Methods

__construct()

public __construct(AbstractProvider $oauth2, TokenStorage $storage) : mixed
Parameters
$oauth2 : AbstractProvider
$storage : TokenStorage

getHeaders()

public getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

getToken()

public getToken([bool $interactive = true ]) : AccessTokenInterface|null
Parameters
$interactive : bool = true
Return values
AccessTokenInterface|null

handleRedirect()

public handleRedirect() : void

isReady()

public isReady() : bool
Return values
bool

        
On this page

Search results