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.
public complete ( string $current_url, array $query = null ) : Auth_OpenID_ConsumerResponse | ||
$current_url | string | The URL used to invoke the application. Extract the URL from your application's web request framework and specify it here to have it checked against the openid.current_url value in the response. If the current_url URL check fails, the status of the completion will be FAILURE. |
$query | array | An array of the query parameters (key => value pairs) for this HTTP request. Defaults to null. If null, the GET or POST data are automatically gotten from the PHP environment. It is only useful to override $query for testing. |
return | Auth_OpenID_ConsumerResponse | $response 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. |