abstract |
---|
Abstract OAuth Client
Methods | ||
---|---|---|
public
|
__construct(string $clientId, string $clientSecret, string $redirectUri = null)
|
# |
public
static
|
option(string $option, mixed $value): boolean
|
# |
public
|
auth(): string
|
# |
abstract
protected
|
_setupTokens(string $authzCode, string $grantType): array
|
# |
abstract
protected
|
_getOAuthInstance(integer $authType): object
|
# |
Constants | ||
---|---|---|
public
|
URL_AUTH = '/ab/account-security/oauth2/authorize'
|
# |
public
|
URL_ATOKEN = '/v3/oauth2/token'
|
# |
public
|
URL_RTOKEN = '/v3/oauth2/token'
|
# |
Properties | |||
---|---|---|---|
protected
static
|
Client
|
$_clientId = null
|
# |
protected
static
|
Client
|
$_clientSecret = null
|
# |
protected
static
|
Grant
|
$_grantType = null
|
# |
protected
static
|
Redirect
|
$_redirectUri = null
|
# |
protected
static
|
refresh
|
$_refreshToken = null
|
# |
protected
static
|
access
|
$_accessToken = null
|
# |
protected
static
|
expires_in
|
$_expiresIn = null
|
# |
protected
static
|
Authorization
|
$_authzCode = null
|
# |
protected
static
|
state
|
$_state = null
|
# |
protected
static
|
Entry
|
$_epoint = 'api'
|
# |
protected
static
|
Application
|
$_mode = 'web'
|
# |
protected
static
|
SSL
|
$_verifySsl = true
|
# |