Hi Paul,

Thanks for your reply. Yeah I have decided to use content type html. This is
what I am doing on approval of user credentials pop up window automatically
closed and then I create a iframe element make a call to resource which I
needed. Is this approach correct?

I have another question When I sogn out from the iGoogle and close the
browser I mean kill the current session by closing browser then log back in
to iGoogle again Do I have to request the user to log back in again to see
the gadget display in iGoogle? What is the best way to implement this?

Thanks,
Bhaskar

---------- Forwarded message ----------
From: Paul Kinlan <[email protected]>
Date: Mon, Sep 6, 2010 at 8:35 AM
Subject: Re: [iGoogle Developer Forum] How to use the OAuth when using
Content type URL?
To: [email protected]


Hi,

You can't use gadget.io.makeRequest with type="url" and therefore using
oAuth doesn't make much sense and is unlikely to be supported in gadgets of
type="url".  Added to this, custom oAuth endpoints need to have their
consumer key and secret registered with Google.  More information can be
found here: http://code.google.com/apis/gadgets/docs/oauth.html#consumer-key

P

On Fri, Sep 3, 2010 at 8:57 PM, Bachi <[email protected]> wrote:

> Hi Everyone,
>
> I have developed a gadget which is using oAuth. Now I am trying to use
> content type URL. Could any one please help me to do this kind gadget?
>
> Here is my gadget code
>
> <Module>
> <ModulePrefs title="OAuth Contacts" scrolling="true">
> <Require feature="opensocial-0.8" />
> <Require feature="locked-domain"/>
> <OAuth>
> <Service name="google">
> <Access url="http://phd.estenda.com/mhealth250/access_token";
> method="GET" />
> <Request url="http://phd.estenda.com/mhealth250/request_token";
> method="GET" />
> <Authorization url="http://phd.estenda.com/mhealth250/authorize?
> callbackURL=http://oauth.gmodules.com/gadgets/oauthcallback"; />
> </Service>
> </OAuth>
> </ModulePrefs>
> <Content type="url" href="http://phd.estenda.com/mhealth250/faces/
> admin/test.faces<http://phd.estenda.com/mhealth250/faces/admin/test.faces>"
> />
> </Module>
>
> and the test.faces has the html source which supports the google
> gadget.
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "iGoogle Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-gadgets-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>
>


-- 
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5
t: +447730517944
tw: @Paul_Kinlan

-- 
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected]<google-gadgets-api%[email protected]>
.
For more options, visit this group at
http://groups.google.com/group/Google-Gadgets-API?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-Gadgets-API?hl=en.

Reply via email to