Can't authenticate Flickr from Drake, I cannot restore the Drupal Session after the callback
mixersoft - January 23, 2008 - 14:12
| Project: | Drake :: Drupal-CakePHP bridge |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Trying to do an authenticated Flickr API call from Drake. It requires a redirect to Flickr for authentication, then a callback to a set URL. The callback is locked out from Drupal with an "access denied" error - I think it is even before it gets to Drake.
The callback link goes to "/drake?run=/flickr/sets", but I think it is missing the context or Drupal $_SESSION data to get back into Drupal and/or Drake.
function drake_dispatcher() {
...
$content = $cakeDispatcher->get($parameters['url']);
// <--- BECAUSE OF THE Flickr REDIRECT/CALLBACKS, I NEVER GET BACK TO THIS POINT
_drake_dispatcher_finalize();
...}
Does anyone have an idea how to solve this problem?
