ZF-10295: Redirect is not accepting any custom urls
Description
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.
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);
exit(1);
}
// 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
) {
Comments
Posted by Pádraic Brady (padraic) on 2010-10-10T16:14:39.000+0000
Fixed in r23078