src/OAuth2/Server.php
public function handleAuthorizeRequest(RequestInterface $request, ResponseInterface $response, $is_authorized, $user_id = null)
    {
        $this->response = $response;
        $this->getAuthorizeController()->handleAuthorizeRequest($request, $this->response, $is_authorized, $user_id);

        return $this->response;
    }
public function handleAuthorizeRequest(RequestInterface $request, ResponseInterface $response, $is_authorized, $user_id = null)
    {
        $this->response = $response;
        $this->getAuthorizeController()->handleAuthorizeRequest($request, $this->response, $is_authorized, $user_id);

        return $this->response;
    }
public function handleAuthorizeRequest ( RequestInterface $ request , ResponseInterface $ response , $ is_authorized , $ user_id = null ) { $ this -> response = $ response ; $ this -> getAuthorizeController ( ) -> handleAuthorizeRequest ( $ request , $ this -> response , $ is_authorized , $ user_id ) ; return $ this -> response ; }
Redirect the user appropriately after approval.

After the user has approved or denied the resource request the
authorization server should call this function to redirect the user
appropriately.

@param RequestInterface  $request - The request should have the follow parameters set in the querystring:
- response_type: The requested response: an access token, an authorization code, or both.
- client_id: The client identifier as described in Section 2.
- redirect_uri: An absolute URI to which the authorization server will redirect the user-agent to when the
end-user authorization step is completed.
- scope: (optional) The scope of the resource request expressed as a list of space-delimited strings.
- state: (optional) An opaque value used by the client to maintain state between the request and callback.

@param ResponseInterface $response      - Response object
@param bool              $is_authorized - TRUE or FALSE depending on whether the user authorized the access.
@param mixed             $user_id       - Identifier of user who authorized the client
@return ResponseInterface

@see http://tools.ietf.org/html/rfc6749#section-4

@ingroup oauth2_section_4
Redirect the user appropriately after approval .