ZF-10295: Redirect is not accepting any custom urls

Issue Type: Bug Created: 2010-08-11T12:16:23.000+0000 Last Updated: 2010-11-20T09:15:16.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Jerry Verhoef (lucard) Assignee: Pádraic Brady (padraic) Tags: - Zend_Oauth

Related issues: Attachments:


The Zend_Oauth_Consumer redirect method is not accepting any custom Zend_Oauth_Http_UserAuthorization's. This is caused by an incorrect call to getRedirectUrl method.

<pre class="highlight"> 
 public function redirect(
        array $customServiceParameters = null,
        Zend_Oauth_Http_UserAuthorization $request = null
    ) {
// This call is missing a parameter when a $request has been specified
        $redirectUrl = $this->getRedirectUrl($customServiceParameters, $request);
        header('Location: ' . $redirectUrl);

<pre class="highlight">
// This method is expecting the second parameter to be a Token_Request
 public function getRedirectUrl(
        array $customServiceParameters = null,
        Zend_Oauth_Token_Request $token = null,
        Zend_Oauth_Http_UserAuthorization $redirect = null
    ) {


Posted by Pádraic Brady (padraic) on 2010-10-10T16:14:39.000+0000

Fixed in r23078

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.