authenticate($selfServiceProfile, $user, $password); } /** * Authenticates against the server * * @param unknown $selfServiceProfile * @param unknown $user * @param unknown $password * @return string token * @throws \Exception error during authentication */ private function authenticate($selfServiceProfile, $user, $password) { $curl = $this->getCurl($selfServiceProfile); } /** * Returns the curl object. * * @param unknown $selfServiceProfile * @return object curl handle * @throws \Exception error during curl creation */ private function getCurl($selfServiceProfile) { $curl = curl_init(); return $curl; } }