openid_test.module

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.

File

drupal/modules/openid/tests/openid_test.module
View source

Functions

Namesort descending Description
openid_test_endpoint Menu callback; OpenID Provider Endpoint.
openid_test_html_openid1 Menu callback; regular HTML page with OpenID 1.0 <link> element.
openid_test_html_openid2 Menu callback; regular HTML page with OpenID 2.0 <link> element.
openid_test_menu Implements hook_menu().
openid_test_menu_site_status_alter Implements hook_menu_site_status_alter().
openid_test_redirect Menu callback; redirect during Normalization/Discovery.
openid_test_redirected_method Menu callback; respond with appropriate callback.
openid_test_yadis_http_equiv Menu callback; regular HTML page with <meta> element.
openid_test_yadis_xrds Menu callback; XRDS document that references the OP Endpoint URL.
openid_test_yadis_x_xrds_location Menu callback; regular HTML page with an X-XRDS-Location HTTP header.
_openid_test_endpoint_associate OpenID endpoint; handle "associate" requests (see OpenID Authentication 2.0, section 8).
_openid_test_endpoint_authenticate OpenID endpoint; handle "authenticate" requests.