Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By wojtha on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.9
Description:
Return value of the Openid discovery methods registered by hook_openid_discovery_method_info() was changed.
Previously the registered discovery method returns only plain array of discovered services. Now it returns associative array with the following keys:
- 'services' (required) an array of discovered services (including OpenID version, endpoint URI, etc).
- 'claimed_id' (optional) new claimed identifer, found by following HTTP redirects during the services discovery.
Example: function _openid_xrds_discovery before change.
/**
* OpenID discovery method: perform a XRDS discovery.
*/
function _openid_xrds_discovery($claimed_id) {
// stripped code
return $services;
}
Example: function _openid_xrds_discovery after change.
/**
* OpenID discovery method: perform a XRDS discovery.
*/
function _openid_xrds_discovery($claimed_id) {
// stripped code
if (!empty($services)) {
return array(
'services' => $services,
'claimed_id' => $claimed_id,
);
}
}
Impacts:
Module developers