Yoast_Google_AuthNone

Do-nothing authentication implementation, use this if you want to make un-authenticated calls.

Defined (1)

The class is defined in the following location(s).

/vendor/yoast/api-libs/google/auth/Google_AuthNone.php  
  1. class Yoast_Google_AuthNone extends Yoast_Google_Auth { 
  2. public $key = null; 
  3.  
  4. public function __construct() { 
  5. global $apiConfig; 
  6. if (!empty($apiConfig['developer_key'])) { 
  7. $this->setDeveloperKey($apiConfig['developer_key']); 
  8.  
  9. public function setDeveloperKey($key) {$this->key = $key;} 
  10. public function authenticate($service) {/**noop*/} 
  11. public function setAccessToken($accessToken) {/** noop*/} 
  12. public function getAccessToken() {return null;} 
  13. public function createAuthUrl($scope) {return null;} 
  14. public function refreshToken($refreshToken) {/** noop*/} 
  15. public function revokeToken() {/** noop*/} 
  16.  
  17. public function sign(Yoast_Google_HttpRequest $request) { 
  18. if ($this->key) { 
  19. $request->setUrl($request->getUrl() . ((strpos($request->getUrl(), '?') === false) ? '?' : '&') 
  20. . 'key='.urlencode($this->key)); 
  21. return $request;