function openid_normalize

Normalize the given identifier.

The procedure is described in OpenID Authentication 2.0, section 7.2.

6 calls to openid_normalize()
OpenIDTest::testOpenidNormalize in drupal/core/modules/openid/lib/Drupal/openid/Tests/OpenIDTest.php
Test openid_normalize().
openid_begin in drupal/core/modules/openid/openid.module
The initial step of OpenID authentication responsible for the following:
openid_complete in drupal/core/modules/openid/openid.module
Completes OpenID authentication by validating returned data from the OpenID Provider.
openid_user_add_validate in drupal/core/modules/openid/openid.pages.inc
_openid_xrds_discovery in drupal/core/modules/openid/openid.module
OpenID discovery method: perform a XRDS discovery.

... See full list

File

drupal/core/modules/openid/openid.inc, line 266
OpenID utility functions.

Code

function openid_normalize($identifier) {
  $methods = module_invoke_all('openid_normalization_method_info');
  drupal_alter('openid_normalization_method_info', $methods);

  // Execute each method in turn, stopping after the first method accepted
  // the identifier.
  foreach ($methods as $method) {
    $result = $method($identifier);
    if ($result !== NULL) {
      $identifier = $result;
      break;
    }
  }
  return $identifier;
}