PHP Class Auth_OpenID_Server

Use this object by calling getOpenIDResponse when you get any request for the server URL.
ファイルを表示 Open project: openid/php-openid Class Usage Examples

Public Methods

Method Description
__construct ( $store, $op_endpoint = null )
decodeRequest ( $query = null ) Decodes a query args array into the appropriate {@link Auth_OpenID_Request} object.
encodeResponse ( $response ) Encodes as response in the appropriate format suitable for sending to the user agent.
handleRequest ( Auth_OpenID_Request $request ) : Auth_OpenID_ServerResponse Handle a request. Given an {@link Auth_OpenID_Request} object, call the appropriate {@link Auth_OpenID_Server} method to process the request and generate a response.
openid_associate ( $request ) The callback for 'associate' messages.
openid_check_authentication ( $request ) The callback for 'check_authentication' messages.

Method Details

__construct() public method

public __construct ( $store, $op_endpoint = null )

decodeRequest() public method

Decodes a query args array into the appropriate {@link Auth_OpenID_Request} object.
public decodeRequest ( $query = null )

encodeResponse() public method

Encodes as response in the appropriate format suitable for sending to the user agent.
public encodeResponse ( $response )

handleRequest() public method

Handle a request. Given an {@link Auth_OpenID_Request} object, call the appropriate {@link Auth_OpenID_Server} method to process the request and generate a response.
public handleRequest ( Auth_OpenID_Request $request ) : Auth_OpenID_ServerResponse
$request Auth_OpenID_Request An {@link Auth_OpenID_Request} returned by {@link Auth_OpenID_Server::decodeRequest()}.
return Auth_OpenID_ServerResponse $response A response object capable of generating a user-agent reply.

openid_associate() public method

The callback for 'associate' messages.
public openid_associate ( $request )

openid_check_authentication() public method

The callback for 'check_authentication' messages.
public openid_check_authentication ( $request )