function openid_association_request
openid_association_request($public)
File
- modules/openid/openid.module, line 728
- Implement OpenID Relying Party support for Drupal
Code
function openid_association_request($public) { module_load_include('inc', 'openid'); $request = array( 'openid.ns' => OPENID_NS_2_0, 'openid.mode' => 'associate', 'openid.session_type' => 'DH-SHA1', 'openid.assoc_type' => 'HMAC-SHA1' ); if ($request['openid.session_type'] == 'DH-SHA1' || $request['openid.session_type'] == 'DH-SHA256') { $cpub = _openid_dh_long_to_base64($public); $request['openid.dh_consumer_public'] = $cpub; } return $request; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.module/function/openid_association_request/7.x