[ class tree: OpenID ] [ index: OpenID ] [ all elements ]

Class: Auth_OpenID_AuthRequest

Source Location: /zp-extensions/federated_logon/Auth/OpenID/Consumer.php

Class Auth_OpenID_AuthRequest

Class Overview

This class represents an authentication request from a consumer to an OpenID server.

Located in /zp-extensions/federated_logon/Auth/OpenID/Consumer.php [line 1743]



		
		
		
		

Methods

[ Top ]
Method Summary
Auth_OpenID_AuthRequest   Auth_OpenID_AuthRequest()   Initialize an authentication request with the specified token, association, and endpoint.
void   addExtension()   Add an extension to this checkid request.
void   addExtensionArg()   Add an extension argument to this OpenID authentication request.
void   formMarkup()   Get html for a form to submit this request to the IDP.
void   getMessage()   Produce a Auth_OpenID_Message representing this request.
void   htmlMarkup()   Get a complete html document that will autosubmit the request to the IDP.
void   redirectURL()  
void   setAnonymous()   Set whether this request should be made anonymously. If a request is anonymous, the identifier will not be sent in the request. This is only useful if you are making another kind of request with an extension in this request.
void   shouldSendRedirect()  

[ Top ]
Methods
Constructor Auth_OpenID_AuthRequest  [line 1753]

  Auth_OpenID_AuthRequest Auth_OpenID_AuthRequest( $endpoint, $assoc  )

Initialize an authentication request with the specified token, association, and endpoint.

Users of this library should not create instances of this class. Instances of this class are created by the library when needed.

Parameters:
   $endpoint: 
   $assoc: 


[ Top ]
addExtension  [line 1769]

  void addExtension( $extension_request  )

Add an extension to this checkid request.

$extension_request: An object that implements the extension request interface for adding arguments to an OpenID message.

Parameters:
   $extension_request: 


[ Top ]
addExtensionArg  [line 1793]

  void addExtensionArg( string $namespace, string $key, string $value  )

Add an extension argument to this OpenID authentication request.

Use caution when adding arguments, because they will be URL-escaped and appended to the redirect URL, which can easily get quite long.

Parameters:
string   $namespace:  The namespace for the extension. For example, the simple registration extension uses the namespace 'sreg'.
string   $key:  The key within the extension namespace. For example, the nickname field in the simple registration extension's key is 'nickname'.
string   $value:  The value to provide to the server for this argument.


[ Top ]
formMarkup  [line 1930]

  void formMarkup( $realm, [ $return_to = null], [ $immediate = false], [ $form_tag_attrs = null]  )

Get html for a form to submit this request to the IDP.

form_tag_attrs: An array of attributes to be added to the form tag. 'accept-charset' and 'enctype' have defaults that can be overridden. If a value is supplied for 'action' or 'method', it will be replaced.

Parameters:
   $realm: 
   $return_to: 
   $immediate: 
   $form_tag_attrs: 


[ Top ]
getMessage  [line 1837]

  void getMessage( string $realm, [string $return_to = null], [bool $immediate = false]  )

Produce a Auth_OpenID_Message representing this request.

Parameters:
string   $realm:  The URL (or URL pattern) that identifies your web site to the user when she is authorizing it.
string   $return_to: 

The URL that the OpenID provider will send the user back to after attempting to verify her identity.

Not specifying a return_to URL means that the user will not be returned to the site issuing the request upon its completion.

bool   $immediate:  If true, the OpenID provider is to send back a response immediately, useful for behind-the-scenes authentication attempts. Otherwise the OpenID provider may engage the user before providing a response. This is the default case, as the user may need to provide credentials or approve the request before a positive response can be sent.


[ Top ]
htmlMarkup  [line 1949]

  void htmlMarkup( $realm, [ $return_to = null], [ $immediate = false], [ $form_tag_attrs = null]  )

Get a complete html document that will autosubmit the request to the IDP.

Wraps formMarkup. See the documentation for that function.

Parameters:
   $realm: 
   $return_to: 
   $immediate: 
   $form_tag_attrs: 


[ Top ]
redirectURL  [line 1910]

  void redirectURL( $realm, [ $return_to = null], [ $immediate = false]  )

Parameters:
   $realm: 
   $return_to: 
   $immediate: 


[ Top ]
setAnonymous  [line 1807]

  void setAnonymous( $is_anonymous  )

Set whether this request should be made anonymously. If a request is anonymous, the identifier will not be sent in the request. This is only useful if you are making another kind of request with an extension in this request.

Anonymous requests are not allowed when the request is made with OpenID 1.

Parameters:
   $is_anonymous: 


[ Top ]
shouldSendRedirect  [line 1961]

  void shouldSendRedirect( )



[ Top ]

Documentation generated on Tue, 20 Dec 2011 16:07:05 +0100 by phpDocumentor 1.4.3