Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As mentioned on drupal_goto(): // Do not redirect to an absolute URL originating from user input.
This means when you pass on an absolute url, it's not used. _oauth_common_authorize() has to be changed:
$query = $_GET;
unset($query['q']); // why are there so few q's?
drupal_goto('user/login', array(
'destination' => url('oauth/authorize', array(
'query' => $query,
'absolute' => TRUE,
)),
));
Find patch attached for the fix.
Comment | File | Size | Author |
---|---|---|---|
oauth_common.pages_.inc-absolute.patch | 603 bytes | toemaz | |
Comments
Comment #1
Hugo Wetterberg CreditAttribution: Hugo Wetterberg commentedComment #2
voxpelli CreditAttribution: voxpelli commentedComment #3
voxpelli CreditAttribution: voxpelli commentedFixed - thanks for the patch and sorry for the delay!