openid_test.module

Version 1.8 (checked in on 2009/12/04 at 16:49:47 by dries)

Dummy OpenID Provider used with SimpleTest.

The provider simply responds positively to all authentication requests. In addition to a Provider Endpoint (a URL used for Drupal to communicate with the provider using the OpenID Authentication protocol) the module provides URLs used by the various discovery mechanisms.

When a user enters an OpenID identity, the Relying Party (in the testing scenario, this is the OpenID module) looks up the URL of the Provider Endpoint using one of several discovery mechanisms. The Relying Party then redirects the user to Provider Endpoint. The provider verifies the user's identity and redirects the user back to the Relying Party accompanied by a signed message confirming the identity. Before redirecting to a provider for the first time, the Relying Party fetches a secret MAC key from the provider by doing a direct "associate" HTTP request to the Provider Endpoint. This key is used for verifying the signed messages from the provider.

Functions

NameDescription
openid_test_endpointMenu callback; OpenID Provider Endpoint.
openid_test_html_openid1Menu callback; regular HTML page with OpenID 1.0 <link> element.
openid_test_html_openid2Menu callback; regular HTML page with OpenID 2.0 <link> element.
openid_test_menuImplements hook_menu().
openid_test_yadis_http_equivMenu callback; regular HTML page with <meta> element.
openid_test_yadis_xrdsMenu callback; XRDS document that references the OP Endpoint URL.
openid_test_yadis_x_xrds_locationMenu callback; regular HTML page with an X-XRDS-Location HTTP header.
_openid_test_endpoint_associateOpenID endpoint; handle "associate" requests (see OpenID Authentication 2.0, section 8).
_openid_test_endpoint_authenticateOpenID endpoint; handle "authenticate" requests.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.