Vinay

" You put a redirect URL in the section where it says "Authorized Redirect
URLs"; this way the user will be redirected back to the app after they
grant the app permissions to access their (the user's) account information.
But the redirect URL will also contain a ?code= parameter,"

I dont have any users doing any explicit action. Our app sitting in GAE
need to access google docs without any user intervention

Vik

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Fri, Jun 14, 2013 at 8:59 AM, Vinny P <[email protected]> wrote:

> Hello,
>
> On Thursday, June 13, 2013 10:32:11 PM UTC-5, Vivek Kumar wrote:
>
>> Can someone help us on this please
>> http://stackoverflow.com/**questions/17057978/issues-in-**
>> implementing-server-side-**authorization-to-google-drive<http://stackoverflow.com/questions/17057978/issues-in-implementing-server-side-authorization-to-google-drive>
>>
>>
> The authorization code is passed back through the redirect URL you
> provided.
>
> For example, here's a picture of the process to create an application:
> http://imgur.com/a/UUXyI . You put a redirect URL in the section where it
> says "Authorized Redirect URLs"; this way the user will be redirected back
> to the app after they grant the app permissions to access their (the
> user's) account information. But the redirect URL will also contain a
> ?code= parameter, which contains the authorization code that you can
> exchange for access credentials. For instance, if you set a redirect URL of
> example.com/oauth, then the redirect URL that your app will receive will
> look like: example.com/oauth?code=Ud3wq8943. Retrieve the authorization
> code (it's just a standard parameter, use req.getParameter("code") ), and
> send it back to Google to get back access credentials (that's what the code
> fragment you posted does).
>
> BTW, the Java client library handles all of this automagically. Look
> through the javadocs.
>
>
> -----------------
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> My Go side project: http://invalidmail.com/
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to