Return-Path: X-Original-To: apmail-oltu-user-archive@www.apache.org Delivered-To: apmail-oltu-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8088910778 for ; Mon, 6 Jan 2014 17:23:17 +0000 (UTC) Received: (qmail 71406 invoked by uid 500); 6 Jan 2014 17:22:51 -0000 Delivered-To: apmail-oltu-user-archive@oltu.apache.org Received: (qmail 71294 invoked by uid 500); 6 Jan 2014 17:22:34 -0000 Mailing-List: contact user-help@oltu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@oltu.apache.org Delivered-To: mailing list user@oltu.apache.org Received: (qmail 71223 invoked by uid 99); 6 Jan 2014 17:22:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 17:22:22 +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 (athena.apache.org: domain of maciej.machulak@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 17:22:17 +0000 Received: by mail-wg0-f43.google.com with SMTP id k14so16132824wgh.22 for ; Mon, 06 Jan 2014 09:21:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mUVbroXH25E+lSk/oZ5PzOGi/O/oB2qbDc4aT97eZWM=; b=jDnmcA6lv8Kbeicsl5weP2mO2czq4rFiukfZ+cHV8jQOSWCVh54OdOHmfmSpwKkMq3 rJiyFaRCmG0uLafmMki34T1fr2DxqJympWD+Bf6lQnuvUpci6hHY+FXaThsZfgWxpmWk bldUc3EnyiPk4ZDAM22vVB+DM0VoAde43DuJOgea09adNnZgoCeJICwNgX/bwHftWjzd HxJzhcPwCxqOsStpJNuesAuzJhY1lg3p5ZwqEnMcI4ug0ndjlXT0AIqbnl0tsKRdB8W5 SHhRLCAQyZ8VkDr5xDnbhg94w27ZvMOG0XDUC0iFK8ujcXJCkJqPQSmPbRyQFYfZqedn JI8g== MIME-Version: 1.0 X-Received: by 10.194.234.65 with SMTP id uc1mr62227708wjc.39.1389028916735; Mon, 06 Jan 2014 09:21:56 -0800 (PST) Received: by 10.194.142.242 with HTTP; Mon, 6 Jan 2014 09:21:56 -0800 (PST) In-Reply-To: References: Date: Mon, 6 Jan 2014 17:21:56 +0000 Message-ID: Subject: Re: Problem while getting access_token from Google From: Maciej Machulak To: user@oltu.apache.org Content-Type: multipart/alternative; boundary=089e01419e1e2a358104ef507f72 X-Virus-Checked: Checked by ClamAV on apache.org --089e01419e1e2a358104ef507f72 Content-Type: text/plain; charset=UTF-8 Hi, See if you are using .buildQueryMessage(); or .buildPostMessage() when exchanging the code for an access token. I think that the documentation states the first one, while you should be using the latter one. I hope this helps, cheers, Maciej On 6 January 2014 17:18, Umesh Awasthi wrote: > Hi All, > > I Know this question does not directly belongs to the list, but I though > about asking here to get some clue.. > > I am trying to let user login through Google API but facing some issue,,I > am able to get access_code but when I am trying to get access_token, I am > getting HTTP Code 400 from Google and it saying > > OAuthProblemException{error='invalid_request', description='null', > uri='null', state='null', scope='null', redirectUri='null', > responseStatus=0, parameters={}} > > I tested it on Google OAuth 2.0 Playground and everything is working as > expected but while using Oltu API, I am getting this exception > > But on other hand integration with Facebook just went smooth without any > error/ exception. > > So anyone have idea what might be wrong here? > > -- > With Regards > Umesh Awasthi > http://www.travellingrants.com/ > > > -- Maciej Machulak email: maciej.machulak@gmail.com mobile: +44 7999 606 767 (UK) mobile: +48 602 45 31 66 (PL) --089e01419e1e2a358104ef507f72 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

See if you are using=C2=A0.buildQue= ryMessage(); or .buildPostMessage() when exchanging the code for an access = token. I think that the documentation states the first one, while you shoul= d be using the latter one.

I hope this helps, cheers, Maciej


On 6 January 2014 17:18= , Umesh Awasthi <umeshawasthi@gmail.com> wrote:
Hi All,=

I Know this question does not directly belongs to the list, b= ut I though about asking here to get some clue..

I am trying to let user login through Google API but facing some = issue,,I am able to get access_code but when I am trying to get access_toke= n, I am getting HTTP Code 400 from Google and it saying

OAuthProblemException{error=3D'invalid_request', description=3D= 'null', uri=3D'null', state=3D'null', scope=3D'= null', redirectUri=3D'null', responseStatus=3D0, parameters=3D{= }}

I tested it on Google=C2=A0 OAuth 2.0 Playground and everything is working = as expected but while using Oltu API, I am getting this exception

But on other hand integration with Facebook just went smooth witho= ut any error/ exception.

So anyone have idea what might be wrong here?

-- =
With Regards
Umesh Awasthi
http://www.travellingrants.com/

=C2=A0 =C2=A0=20



--
Maciej Machu= lak
email: maciej.machulak@gmail.com
mobile: +44 7999 606 767 (UK)
mobile:= +48 602 45 31 66 (PL)
--089e01419e1e2a358104ef507f72--