authclient\OAuth2 composeRequestCurlOptions()

composeRequestCurlOptions() protected method Composes HTTP request CUrl options, which will be merged with the default ones. protected array composeRequestCurlOptions ( $method, $url, array $params )$method string Request type. $url string Request URL. $params array Request params. return array CUrl options. throws yii\base\Exception on failure.

authclient\OAuth2 createToken()

createToken() protected method Creates token from its configuration. protected yii\authclient\OAuthToken createToken ( array $tokenConfig = [] )$tokenConfig array Token configuration. return yii\authclient\OAuthToken Token instance.

authclient\OAuth2 defaultReturnUrl()

defaultReturnUrl() protected method Composes default $returnUrl value. protected string defaultReturnUrl ( )return string Return URL.

authclient\OAuth2 fetchAccessToken()

fetchAccessToken() public method Fetches access token from authorization code. public yii\authclient\OAuthToken fetchAccessToken ( $authCode, array $params = [] )$authCode string Authorization code, usually comes at $_GET['code']. $params array Additional request params. return yii\authclient\OAuthToken Access token.

authclient\OAuth2 refreshAccessToken()

refreshAccessToken() public method Gets new auth token to replace expired one. public yii\authclient\OAuthToken refreshAccessToken ( yii\authclient\OAuthToken $token )$token yii\authclient\OAuthToken Expired auth token. return yii\authclient\OAuthToken New auth token.

authclient\OAuthToken $createTimestamp

$createTimestamp public property Object creation timestamp. public integer $createTimestamp = null

authclient\OAuthToken $expireDuration

$expireDuration public property Token expiration duration. public integer getExpireDuration ( )public void setExpireDuration ( $expireDuration )

authclient\OAuthToken $expireDurationParamKey

$expireDurationParamKey public property Expire duration param key. public string getExpireDurationParamKey ( )public void setExpireDurationParamKey ( $expireDurationParamKey )

authclient\OAuthToken $isExpired

$isExpired public read-only property Is token expired. public boolean getIsExpired ( )

authclient\OAuthToken $isValid

$isValid public read-only property Is token valid. public boolean getIsValid ( )