21 messages in com.googlegroups.google-calendar-help-dataapiUsing AuthSub Session token and getti...
FromSent OnAttachments
KoolGuy22 Feb 2007 17:13 
Ryan Boyd (Google)22 Feb 2007 18:02 
KoolGuy22 Feb 2007 21:55 
Ryan Boyd (Google)23 Feb 2007 07:50 
Venkata Nanduri23 Feb 2007 10:51 
Frank Mantek23 Feb 2007 13:23 
Venkata Nanduri23 Feb 2007 13:43 
Frank Mantek23 Feb 2007 13:52 
KoolGuy23 Feb 2007 20:06 
Frank Mantek24 Feb 2007 07:56 
venk...@gmail.com27 Feb 2007 13:18 
Frank Mantek (Google)01 Mar 2007 10:28 
Frank Mantek01 Mar 2007 10:33 
KoolGuy03 Mar 2007 10:59 
Frank Mantek04 Mar 2007 00:35 
KoolGuy09 Mar 2007 17:32 
Ryan Boyd (Google)15 Mar 2007 07:54 
KoolGuy07 Apr 2007 22:05 
Ryan Boyd (Google)10 Apr 2007 17:20 
KoolGuy06 May 2007 23:16 
KoolGuy06 May 2007 23:17 
Subject:Using AuthSub Session token and getting error"400: Invalid Request URI"
From:KoolGuy (Venk@gmail.com)
Date:02/22/2007 05:13:28 PM
List:com.googlegroups.google-calendar-help-dataapi

Hi

I had to use the "Google Calendar Feeds - add an event" to simulate a prototype for my company stuff. Step 1: Obtained a One-Time token using the following URL:

https%3a%2f%2fmcfl1u5v.MYCOMPANY.com%3a1443%2fcgi-bin %2fim0drxc3%2fconsu mer%2fcBLAHBLAHBLAH%3dLftNavOtcTmpl%26LeftNavHighlight %3dNavPdpDownloadForm%26MarcoPolo%3dY%26BV_SessionID%3d%40%40%40 %401392004170.1172189622%40%40%40%40%26BV_EngineID %3dccccaddkfejdmffcejicegjdfgldfoi.0&scope=http%3a%2f%2fwww.google.com %2fcalendar%2ffeeds%2f

Step 2: Obtained a Session Token using this one-time token using BroadVision's HTTP Portal GET Method with Header successfully:

Authorization: AuthSub token="COfE286iARDikOnXBw"

Step 3: Verified the Token Scope Using TokenInfo API. Result:

Target:mcfl1u5v.MYCOMPANY.com Scope:http://www.google.com/calendar/feeds/ Secure:false

Step 4: Used the session token to Add an Event to my calendar with the following Header:

Authorization: AuthSub token="COfE286iARCjt82vBg" Content-Type: application/atom+xml Content-Length: 714

URL: "http://www.google.com/calendar/feeds/"; I also tried (url = "https://www.google.com/calendar/feeds/default/private/full")

I AM GETTING AN ERRO WITH THE FOLLOWING HEADER FOR URL 1:

******************************************************************* HTTP/1.0 400 Bad Request Content-Type: text/plain; charset=iso-8859-1 Cache-control: private Content-Length: 19 Date: Fri, 23 Feb 2007 00:56:55 GMT Server: GFE/1.3 Connection: Keep-Alive ********************************************************************** CONTENT AS FOLLOWS: Invalid Request URI

I AM GETTING AN ERRO WITH THE FOLLOWING HEADER FOR URL 2: **************************************************************************************** HTTP/1.0 401 Token invalid - AuthSub token has wrong scope

WWW-Authenticate: AuthSub realm="https://www.google.com/accounts/ AuthSubRequest" Cache-control: private Content-Length: 213 Date: Fri, 23 Feb 2007 01:12:33 GMT Content-Type: text/html Server: GFE/1.3 Connection: Close ********************************************************************************************* CONTENT AS FOLLOWS FOR URL 2: <HEAD> <TITLE>Token invalid - AuthSub token has wrong scope</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Token invalid - AuthSub token has wrong scope</H1> <H2>Error 401</H2> </BODY> </HTML> **************************************************************************************

Can somebody help me out?