Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: OpenID

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class Auth_OpenID_Consumer

Description

An OpenID consumer implementation that performs discovery and does session management. See the Consumer.php file documentation for more information.

Located in /openid/Auth/OpenID/Consumer.php (line 222)

Class Auth_OpenID_Consumer
Method Summary
Constructor Auth_OpenID_Consumer Auth_OpenID_Consumer ( &$store, [mixed $session = null], Auth_OpenID_OpenIDStore $store)
Method Auth_OpenID_AuthRequest begin (User_url: $user_url)
Methods
Constructor Auth_OpenID_Consumer (line 259)

Initialize a Consumer instance.

You should create a new instance of the Consumer object with every HTTP request that handles OpenID transactions.

Auth_OpenID_Consumer Auth_OpenID_Consumer ( &$store, [mixed $session = null], Auth_OpenID_OpenIDStore $store)
  • Auth_OpenID_OpenIDStore $store: This must be an object that implements the interface in Auth_OpenID_OpenIDStore. Several concrete implementations are provided, to cover most common use cases. For stores backed by MySQL, PostgreSQL, or SQLite, see the Auth_OpenID_SQLStore class and its sublcasses. For a filesystem-backed store, see the Auth_OpenID_FileStore module. As a last resort, if it isn't possible for the server to store state at all, an instance of Auth_OpenID_DumbStore can be used.
  • mixed $session: session An object which implements the interface of the Services_Yadis_Session class. Particularly, this object is expected to have these methods: get($key), set($key, $value), and del($key). This defaults to a session object which wraps PHP's native session machinery. You should only need to pass something here if you have your own sessioning implementation.
  • &$store
begin (line 287)

Start the OpenID authentication process. See steps 1-2 in the overview at the top of this file.

  • return: An object containing the discovered information will be returned, with a method for building a redirect URL to the server, as described in step 3 of the overview. This object may also be used to add extension arguments to the request, using its 'addExtensionArg' method.
Auth_OpenID_AuthRequest begin (User_url: $user_url)
  • User_url: $user_url: Identity URL given by the user. This method performs a textual transformation of the URL to try and make sure it is normalized. For example, a user_url of example.com will be normalized to http://example.com/ normalizing and resolving any redirects the server might issue.
beginWithoutDiscovery (line 350)

Start OpenID verification without doing OpenID server

discovery. This method is used internally by Consumer.begin after discovery is performed, and exists to provide an interface for library users needing to perform their own discovery.

  • return: An OpenID authentication request object.
Auth_OpenID_AuthRequest &beginWithoutDiscovery (Auth_OpenID_ServiceEndpoint $endpoint)
complete (line 372)

Called to interpret the server's response to an OpenID request. It is called in step 4 of the flow described in the consumer overview.

  • return: A instance of an Auth_OpenID_ConsumerResponse subclass. The type of response is indicated by the status attribute, which will be one of SUCCESS, CANCEL, FAILURE, or SETUP_NEEDED.
Auth_OpenID_ConsumerResponse complete (array $query)
  • array $query: An array of the query parameters (key => value pairs) for this HTTP request.

Documentation generated on Mon, 05 Mar 2007 20:55:27 +0000 by phpDocumentor 1.3.1