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 defaultReturnUrl()

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

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 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 buildAuthUrl()

buildAuthUrl() public method Composes user authorization URL. public string buildAuthUrl ( array $params = [] )$params array Additional auth GET params. return string Authorization URL.

authclient\OAuth2 apiInternal()

apiInternal() protected method Performs request to the OAuth API. protected array apiInternal ( $accessToken, $url, $method, array $params, array $headers )$accessToken yii\authclient\OAuthToken Actual access token. $url string Absolute API URL. $method string Request method. $params array Request parameters. $headers array Additional request headers. return array API response. throws yii\base\Exception on failure.

authclient\OAuth2 $version

$version public property Protocol version. public string $version = '2.0'

authclient\OAuth2 $tokenUrl

$tokenUrl public property Token request URL endpoint. public string $tokenUrl = null

authclient\OAuth2 $clientSecret

$clientSecret public property OAuth client secret. public string $clientSecret = null

authclient\OAuth2 $clientId

$clientId public property OAuth client ID. public string $clientId = null