diff options
Diffstat (limited to 'modules/openid/openid.inc')
-rw-r--r-- | modules/openid/openid.inc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc index 96c80269d..40ccaa3f9 100644 --- a/modules/openid/openid.inc +++ b/modules/openid/openid.inc @@ -66,11 +66,6 @@ define('OPENID_NS_AX', 'http://openid.net/srv/ax/1.0'); define('OPENID_NS_XRD', 'xri://$xrd*($v*2.0)'); /** - * OpenID IDP for Google hosted domains. - */ -define('OPENID_NS_GOOGLE', 'http://namespace.google.com/openid/xmlns'); - -/** * Performs an HTTP 302 redirect (for the 1.x protocol). */ function openid_redirect_http($url, $message) { @@ -301,34 +296,6 @@ function _openid_url_normalize($url) { } /** - * OpenID normalization method: Normalize Google identifiers. - * - * This transforms a Google identifier (user@domain) into an XRDS URL. - * - * @see http://sites.google.com/site/oauthgoog/fedlogininterp/openiddiscovery#TOC-IdP-Discovery - */ -function _openid_google_idp_normalize($identifier) { - if (!valid_email_address($identifier)) { - return; - } - - // If the identifier is a valid email address, try to discover the domain - // with Google Federated Login. We only use the generic URL, because the - // domain-specific URL (http://example.com/.well-known/host-meta) cannot - // be trusted. - list($name, $domain) = explode('@', $identifier, 2); - $response = drupal_http_request('https://www.google.com/accounts/o8/.well-known/host-meta?hd=' . rawurlencode($domain)); - if (isset($response->error) || $response->code != 200) { - return; - } - - if (preg_match('/Link: <(.*)>/', $response->data, $matches)) { - $xrds_url = $matches[1]; - return $xrds_url; - } -} - -/** * Create a serialized message packet as per spec: $key:$value\n . */ function _openid_create_message($data) { |