function _openid_response

1 call to _openid_response()
openid_complete in modules/openid/openid.module
Completes OpenID authentication by validating returned data from the OpenID Provider.

File

modules/openid/openid.inc, line 573

Code

function _openid_response($str = NULL) {
    $data = array();
    if (isset($_SERVER['REQUEST_METHOD'])) {
        $data = _openid_get_params($_SERVER['QUERY_STRING']);
        if ($_SERVER['REQUEST_METHOD'] == 'POST') {
            $str = file_get_contents('php://input');
            $post = array();
            if ($str !== FALSE) {
                $post = _openid_get_params($str);
            }
            $data = array_merge($data, $post);
        }
    }
    return $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.