I am having the same issue as posted above. I am trying to write a web
app that will create accounts on a hosted Google calendar.

If I leave the hd parameter out of the AuthSub url, and log in using a
stanard Google account (@gmail.com), I can create events without
difficulty, and they appear in my @gmail.com calendar. However, if I
use the hd parameter and log in using my hosted account, I get the
'AuthSub Token has wrong scope' error when I try to create events.

Josh

On Feb 12, 3:30 pm, "Eric (Google)" <[email protected]> wrote:
> Hi,
>
> AuthSub scopes:
> No matter what type of account, the AuthSub scope parameter
> remains the same.  So do the API calls, for that matter.
>
> Valid scopes are listed 
> here:http://code.google.com/apis/gdata/faq.html#AuthScopes
>
> hd parameter:
> The hd parameter can be used to streamline the AuthSub flow.
> For example, if you want users to authenticate using a Google
> Account, use hd=default.  However, if you know your users
> are Google Apps users, you can use hd=yourdomain.com.
> Lastly, if you want users to select which account they log in to,
> omit the hd parameter. Having said all that, if you're writing an app
> that accesses
> a user's Google Apps Calendar (or any other Google Apps service),
> I recommend using hd=yourdomain.com.
>
> Google Data services available to hosted domains:
> The services available to Apps domains are listed under 'Application
> Developers':http://code.google.com/apis/apps/overview.html
>
> (e.g. There isn't a Google Apps version of Blogger so using
> hd=yourdomain.com
> with the AuthSub scope=http://www.blogger.com/feeds/won't work)
>
> Hope this helps,
> Eric
>
> On Feb 11, 5:58 pm, CSU Monterey Bay <[email protected]> wrote:
>
> > According to the Google Apps Blog, AuthSub is now available for hosted
> > accounts; however, we are still experiencing problems with AuthSub on
> > our hosted domain.
>
> > We are sucessfully able to get a user authenticated and a session
> > token for that user using the 'hd' argument for our domain. However,
> > we always get the error 'AuthSub Token has wrong scope' for the
> > calendar service.
>
> > The AuthSub documenation mentions that "You can also use the hd
> > parameter if your application accesses services that are not available
> > on hosted accounts", however, I cannot find what those services are.
> > There have been various discussion items in this group that mention
> > that AuthSub is not available for apps, even posted after the
> > aforementioned blog post.
>
> > So where's the documentation specific to AuthSub and Google Apps
> > hosted domains? Are some services not available? Do we have different
> > scope parameters?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps 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-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to