From photark-dev-return-1759-apmail-incubator-photark-dev-archive=incubator.apache.org@incubator.apache.org Tue Aug 7 20:06:31 2012 Return-Path: X-Original-To: apmail-incubator-photark-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-photark-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 331E3D5B1 for ; Tue, 7 Aug 2012 20:06:31 +0000 (UTC) Received: (qmail 63198 invoked by uid 500); 7 Aug 2012 20:06:31 -0000 Delivered-To: apmail-incubator-photark-dev-archive@incubator.apache.org Received: (qmail 63167 invoked by uid 500); 7 Aug 2012 20:06:31 -0000 Mailing-List: contact photark-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: photark-dev@incubator.apache.org Delivered-To: mailing list photark-dev@incubator.apache.org Received: (qmail 63157 invoked by uid 99); 7 Aug 2012 20:06:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 20:06:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bhargav.golla@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 20:06:24 +0000 Received: by wibhm11 with SMTP id hm11so8089wib.0 for ; Tue, 07 Aug 2012 13:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=JxC5dE67tHBluDtA4o9TtPSGzO0z51gV/dVsIz1AaRM=; b=WyvASmdvO1vjmghVktOIcJPvfOeBHaav2f593vaHAvBqDTEbHBk4A/w/m9CbM5wvHC x1JA+ZcSjIaAoHX7goolBz+ZWYUrpPBG5v+kFkLvLRz9npSkTZlftMl8nn13eezYKuDg TYrmgmU0EN7UXULoLhzCJOH41el03s/h9utzYCHAi8D1frYhIul4F7Tt1nP6A88egWsM 0EFcrt/isO3jC/7xY0i2+s8HLir1ic0yLmXG9Pl52gdlXMZGhTnyjZWzjuiJcubVTSY4 z5GqFqfMH/bJnSk8PXIgzxfaQXp/rPXk1DpH8LQ9Ciz6GHnWsVrrpfgvfaEnZU4I7Reb v2nw== Received: by 10.180.107.103 with SMTP id hb7mr30241909wib.3.1344369964597; Tue, 07 Aug 2012 13:06:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.41.130 with HTTP; Tue, 7 Aug 2012 13:05:44 -0700 (PDT) In-Reply-To: References: From: Bhargav Golla Date: Wed, 8 Aug 2012 01:35:44 +0530 Message-ID: Subject: Re: Anyone worked with oAuth2 with installed apps? To: photark-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8f3bab972fc1c704c6b286a1 --e89a8f3bab972fc1c704c6b286a1 Content-Type: text/plain; charset=ISO-8859-1 Kindly ignore the mail. Figured out a work around myself. Regards On Wed, Aug 8, 2012 at 12:40 AM, Bhargav Golla wrote: > I am doing a copy paste of the authorization code returned. > The next step in my authentication flow requires me to POST request to get > an access token with a few parameters as mentioned here > . > Even if I am giving the same parameters as requested, I am not getting the > access token but instead am getting "Invalid_Request" error. From the > description of the error here, > I should have missed some parameters or some parameter value isn't correct. > But I am sending the parameters as required by oAuth2 and am unable to get > access token. Been stuck to this error since 4 days. I would be very much > grateful to anyone who can help me out here. > > Once I get the access token and refresh token, I will just need to GET > request a URL for Picasa photos a user uploaded and Picasa functionality > can be achieved and I can move onto UI design. > > Regards > > On Fri, Aug 3, 2012 at 1:03 PM, Bhargav Golla wrote: > >> Hello, >> I am working on picasa integration for the photark app. For the same, i >> should authenticate a user through google oauth2 authentication. I am >> required to use a redirect-uri ( urn:ietf:wg:oauth:2.0:oob ) which gives me >> a code which a user should copy and enter into application. But the code >> that gets returned is big unlike flickr's 9 digit minitoken. Hence, i am >> looking for help with this: "How do i communicate that code which is in a >> text box in a childbrowser back to my phonegap app?". It would be really >> helpful if there's anyone who can help me out with a direction in this >> context. >> >> Regards >> Bhargav Golla >> > > > > -- > Bhargav Golla > B.E (Hons.) Computer Science > BITS-Pilani > > -- Bhargav Golla B.E (Hons.) Computer Science BITS-Pilani --e89a8f3bab972fc1c704c6b286a1--