function _openid_response in Drupal 7
Same name and namespace in other branches
- 6 modules/openid/openid.inc \_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 - OpenID utility functions.
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;
}