Having the dual scopes did it, thanks a lot!

Josh

On Feb 18, 1:38 pm, "Eric (Google)" <[email protected]> wrote:
> Hi Josh,
>
> Do you have SSL enabled on your domain?  If so, you'll
> need to modify Calendar's scope to start with httpS:
> scope=https://www.google.com/calendar/feeds/
>
> Alternatively, some users request a multi-scoped token
> for both http && https:
> scope=http://www.google.com/calendar/feeds/%20https://www.google.com/
> calendar/feeds/
>
> Having said that, I was able to create this event on a test domain:
> POSThttps://www.google.com/calendar/feeds/default/private/full?gsessionid...
> <entry xmlns='http://www.w3.org/2005/Atom'
>     xmlns:gd='http://schemas.google.com/g/2005'>
>   <category scheme='http://schemas.google.com/g/2005#kind'
>     term='http://schemas.google.com/g/2005#event'></category>
>   <title type='text'>Tennis with Beth</title>
>   <content type='text'>Meet for a quick lesson.</content>
>   <gd:transparency
>     value='http://schemas.google.com/g/2005#event.opaque'>
>   </gd:transparency>
>   <gd:eventStatus
>     value='http://schemas.google.com/g/2005#event.confirmed'>
>   </gd:eventStatus>
>   <gd:where valueString='Rolling Lawn Courts'></gd:where>
>   <gd:when startTime='2009-02-19T15:00:00.000Z'
>     endTime='2009-02-19T17:00:00.000Z'></gd:when>
> </entry>
>
> Hope that helps,
> Eric
>
> On Feb 18, 10:07 am, josh <[email protected]> wrote:
>
> > 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'twork)
>
> > > 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