/** * @return bool */ function has_authentication() { $auth_provider = $this->client->get_auth_provider(); return $auth_provider ? $auth_provider->is_grant($this->get_grant()) : false; }