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

defaultName() protected method Generates service name. protected string defaultName ( )return string Service name.

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 $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 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 getPublicCertificate()

getPublicCertificate() public method public string getPublicCertificate ( )return string Public key certificate content.

authclient\signature\RsaSha1 init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )