Auth_OpenID_GenericConsumer::_verifyDiscoveryServices PHP Méthode

_verifyDiscoveryServices() public méthode

public _verifyDiscoveryServices ( $claimed_id, $services, $to_match_endpoints )
    function _verifyDiscoveryServices($claimed_id, $services, $to_match_endpoints)
    {
        // Search the services resulting from discovery to find one
        // that matches the information from the assertion
        foreach ($services as $endpoint) {
            foreach ($to_match_endpoints as $to_match_endpoint) {
                $result = $this->_verifyDiscoverySingle($endpoint, $to_match_endpoint);
                if (!Auth_OpenID::isFailure($result)) {
                    // It matches, so discover verification has
                    // succeeded. Return this endpoint.
                    return $endpoint;
                }
            }
        }
        return new Auth_OpenID_FailureResponse(null, sprintf('No matching endpoint found after discovering %s: %s', $claimed_id, $result->message));
    }