The authentication script is producing a bad URL because  what should
be http:// is coming out http%2F%2F.  I think http%3%2F%2F would also
work, but the %3 is missing.

If I manually add %3 before www.mysite.org/nextpage.php the URL is
good and a token is returned.

Is this a Zend problem?

Thanks!

- Ron

>From the code below, $authSubUrl equals
https://www.google.com/accounts/AuthSubRequest?next=http%2F%2Fwww.mysite.org/nextpage.php&scope=http://www.google.com/calendar/feeds/&secure=0&session=1



<?php
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_AuthSub');

$nextUrl = 'http//www.mysite.org/nextpage.php';
$scope = 'http://www.google.com/calendar/feeds/';
$secure = 0;  // set $secure=1 to request secure AuthSub tokens
$session = 1;
$authSubUrl = Zend_Gdata_AuthSub::getAuthSubTokenUri($nextUrl, $scope,
$secure, $session);
echo '<br>';
echo '<br>';
echo $authSubUrl;
echo '<br>';
echo '<br>';

$authorizationUrl =
        "<p>MyApp needs access to your Google Calendar account to read
your Calendar feed. " . "To authorize MyApp to access your account, <a
href=\"" . $authSubUrl . "\">log in to your account</a>.</p>";
echo $authorizationUrl;
?>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to