Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
using gtm oauth sample ios app get "invalid_client" error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mpf  
View profile  
 More options Aug 20 2012, 12:40 am
From: mpf <mfla...@gmail.com>
Date: Sun, 19 Aug 2012 21:40:52 -0700 (PDT)
Local: Mon, Aug 20 2012 12:40 am
Subject: using gtm oauth sample ios app get "invalid_client" error

i am trying to learn how to use OAuth2 and I am using the OAuth2SampleAppDelegateTouch iOS app. I have setup a Client ID for installed applications. I enter the correct client ID and client secret. I am redirected to the google login page which successfully logs in and redirects to the consent page,i click ok and am redirected to the app but in the app log i get

2012-08-19 21:16:02.255 OAuthSampleTouch[79083:c07] Authentication error: Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x10d3cf20 {data=<7b0a2020 22657272 6f722220 3a202269 6e76616c 69645f63 6c69656e 74220a7d>, json=<CFBasicHash 0x10d59e60 [0x16a7b48]>{type = mutable dict, count = 1,
entries =>
        2 : <CFString 0x10d59c60 [0x16a7b48]>{contents = "error"} = <CFString 0x10d5be50 [0x16a7b48]>{contents = "invalid_client"}

}
}

any suggestions appreciated

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Robbins  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 3:28 am
From: Greg Robbins <grobb...@google.com>
Date: Mon, 20 Aug 2012 16:28:06 +0900
Local: Mon, Aug 20 2012 3:28 am
Subject: Re: using gtm oauth sample ios app get "invalid_client" error

To use gtm-oauth2, be sure the client ID obtained from the Google API
Console is for an installed application type "Other", not type "iOS".


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mpf  
View profile  
 More options Aug 20 2012, 9:13 pm
From: mpf <mfla...@gmail.com>
Date: Mon, 20 Aug 2012 18:13:19 -0700 (PDT)
Local: Mon, Aug 20 2012 9:13 pm
Subject: Re: using gtm oauth sample ios app get "invalid_client" error

Wow! that was it! Thank you, I would have never thought to use "other". If
I can ask a silly question, if you don't use "iOS" when working with iOS
when do you use it?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Robbins  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 9:34 pm
From: Greg Robbins <grobb...@google.com>
Date: Tue, 21 Aug 2012 10:34:41 +0900
Local: Mon, Aug 20 2012 9:34 pm
Subject: Re: using gtm oauth sample ios app get "invalid_client" error

The GTM OAuth2 documentation mentions that the client ID should be created
with the "other" option.

http://code.google.com/p/gtm-oauth2/wiki/Introduction#Registering_You...

If I can ask a silly question, if you don't use "iOS" when working with iOS

> when do you use it?

It's poorly labeled on the site, but the iOS option is for client IDs
issued for use with the Google+ SDK for iOS, which offers a different
mechanism for signing in to Google accounts.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mpf  
View profile  
 More options Aug 20 2012, 9:40 pm
From: mpf <mfla...@gmail.com>
Date: Mon, 20 Aug 2012 18:40:38 -0700 (PDT)
Local: Mon, Aug 20 2012 9:40 pm
Subject: Re: using gtm oauth sample ios app get "invalid_client" error


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »