authclient\WeChat buildAuthUrl()

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

authclient\WeChat 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\WeChat $tokenUrl

$tokenUrl public property Token request URL endpoint. Token request URL endpoint. public string $tokenUrl = 'https://api.weixin.qq.com/sns/oauth2/access_token'

authclient\WeChat $authUrl

$authUrl public property Authorize URL. Authorize URL. public string $authUrl = 'https://open.weixin.qq.com/connect/qrconnect'

authclient\WeChat $apiBaseUrl

$apiBaseUrl public property API base URL. API base URL. public string $apiBaseUrl = 'https://api.weixin.qq.com'

authclient\signature\RsaSha1 verify()

verify() public method Verifies given OAuth request. public boolean verify ( $signature, $baseString, $key )$signature string Signature to be verified. $baseString string Signature base string. $key string Signature key. return boolean Success.

authclient\signature\RsaSha1 setPublicCertificate()

setPublicCertificate() public method public void setPublicCertificate ( $publicCertificate )$publicCertificate string Public key certificate content.

authclient\signature\RsaSha1 setPrivateCertificate()

setPrivateCertificate() public method public void setPrivateCertificate ( $privateCertificate )$privateCertificate string Private key certificate content.

authclient\signature\RsaSha1 initPublicCertificate()

initPublicCertificate() protected method Creates initial value for $publicCertificate. This method will attempt to fetch the certificate value from $publicCertificateFile file. protected string initPublicCertificate ( )return string Public certificate content. throws yii\base\InvalidConfigException on failure.

authclient\signature\RsaSha1 initPrivateCertificate()

initPrivateCertificate() protected method Creates initial value for $privateCertificate. This method will attempt to fetch the certificate value from $privateCertificateFile file. protected string initPrivateCertificate ( )return string Private certificate content. throws yii\base\InvalidConfigException on failure.