/** * (non-PHPdoc) * @see common_user_auth_Adapter::authenticate() */ public function authenticate() { throw new common_exception_NotImplemented(); $digest = tao_helpers_Http::getDigest(); $data = tao_helpers_Http::parseDigest($digest); //store the hash A1 as a property to be updated on register/changepassword $trialLogin = '******'; $trialPassword = '******'; $A1 = md5($trialLogin . ':' . $this::realm . ':' . $trialPassword); $A2 = md5($_SERVER['REQUEST_METHOD'] . ':' . $data['uri']); $valid_response = md5($A1 . ':' . $data['nonce'] . ':' . $data['nc'] . ':' . $data['cnonce'] . ':' . $data['qop'] . ':' . $A2); }