Hey Folks,
I'm using Cameron's great API and running into a problem.
The logic of my page is like this:
if authenticated
echo jump for joy
else
clear authentication cookies just to be safe
try
authorizeWithAuthSub($_GET['token'])
catch
the exception
redirect to the google login page
Simple, right?
It should work like this:
user comes to the admin page and isn't authenticated. AuthSub throws
an exception since they don't have a good token, they're redirected to
Google log in page.
This all works.
On the Google login page, I click 'grant access' and am brought back
to my page (same URL in the $next parameter of redirect function).
This time, I have a token.
echo $_GET['token'] prints the token to the screen.
$token = $_GET['token']
echo $token prints nohing to the screen.
running authorizeWithAuthSub($_GET['token']) or authorizeWithAuthSub()
(which should use $_GET['token'] throws an exception that tells me I
don't have a token.
strlen($_GET['token']) evaluates to 0.
WTF?
I don't get how I can echo $_GET['token'] and get the value I
expect...but anywhere else I try to use the variable, I get nothing.
Never seen anything like this before, hope you have and can point me
in the right direction to fix it.
thanks,
John Corry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" 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-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---