Lines Matching refs:client
79 $client = new Google_Client();
80 $client->setApplicationName("Google Application");
81 $client->setClientId($this->getConf('client_id'));
82 $client->setClientSecret($this->getConf('client_secret'));
83 $client->setRedirectUri(wl('start',array('do'=>'login'),true, '&'));
84 $client->setAccessType('online');
85 $client->setApprovalPrompt('auto');
87 $oauth2 = new Google_Oauth2Service($client);
92 $client->authenticate($_GET['code']);
94 $_SESSION[DOKU_COOKIE]['authgoogle']['token'] = $client->getAccessToken();
106 $_SESSION[DOKU_COOKIE]['authgoogle']['auth_url'] = $client->createAuthUrl();
112 $client->setAccessToken($_SESSION[DOKU_COOKIE]['authgoogle']['token']);
120 if ($client->getAccessToken()) {
123 if($client->isAccessTokenExpired()) {
124 $authUrl = $client->createAuthUrl();
175 $_SESSION['token'] = $client->getAccessToken();