That's definitely a bug in that overloaded version.  Instead of adding
it as the hd param, it's substituting the hosted domain for the
protocol.

I've opened a bug (http://code.google.com/p/google-gdata/issues/detail?
id=191).  Please star it.

In the meantime, you can use the 5 param version (works correctly):
bool secure = false;
bool session = true;
string scope = "http://www.google.com/calendar/feeds/";;
string nextUrl = "http://www.xmsuite.com";;
AuthSubUtil.getRequestUrl("xmsuite.com", "https", "www.google.com", "/
accounts/AuthSubRequest", nextUrl, scope, secure, session));

Thanks!
Eric

On Nov 29, 4:27 pm, "John Smith" <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> Thank you very much for your quick response.
>
> Here is my code by using default domain name.
>
> AuthSubUtil.getRequestUrl(
>                           "http://www.xmsuite.com";,
>
> "http://www.google.com/calendar/feeds/",false,true<http://www.google.com/calendar/feeds/%22,false,true>);
>
> The code redirects to the normal Google AuthSub page with "Grant Access" and
> "Deny Access" options as the following URL:
>
> https://www.google.com/accounts/AuthSubRequest?next=http%3A%2F%2Fwww....
>
> Then I tried with my domain name as this:
>
> AuthSubUtil.getRequestUrl("xmsuite.com",
>                 "http://www.xmsuite.com";,
>
> "http://www.google.com/calendar/feeds/",false,true<http://www.google.com/calendar/feeds/%22,false,true>
> );
>
> The code returns the following URL:
>
> xmsuite.com://
> httpswww.google.com/?next=http%3A%2F%2Fwww.xmsuite.com&scope=http%3A%2F%2F...
>
> I have attached my program. It is about same as Google's Sample program.
>
> Thank you very much for your help.
>
> Jack
>
> On Sat, Nov 29, 2008 at 5:21 PM, Eric (Google) <[EMAIL PROTECTED]> wrote:
>
> > Hi Jack,
>
> > That's the correct overloaded call.  Can you elaborate a little (i.e.
> > what doesn't work)?
>
> > Please also post the full URL returned by getRequestUrl().
>
> > Thanks,
> > Eric
>
> > On Nov 29, 1:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
> >  > Hi,
>
> > > The following call works in Java version but not in .Net version.
>
> > > AuthSubUtil.getRequestUrl("mydomain.com", continueUrl, "
> >http://www.google.com/calendar/feeds/",false,true);
>
> > > So my question is how can I use my domain instead of default domain. I
> > > have played this all afternoon but still could not figure it out.
>
> > > Thank you very much for your help.
>
> > > Jack
>
>
>
> [AuthSub.aspx.cs< 1K ]using System;
> using System.Data;
> using System.Configuration;
> using System.Collections;
> using System.Web;
> using System.Web.Security;
> using System.Web.UI;
> using System.Web.UI.WebControls;
> using System.Web.UI.WebControls.WebParts;
> using System.Web.UI.HtmlControls;
>
> public partial class employee_AuthSub : System.Web.UI.Page
> {
>     protected void Page_Load(object sender, EventArgs e)
>     {
>
>     }
>
> }
>
>
>
>  AuthSub.aspx
> 4KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" 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-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to