Re: OAuth login error.

132 views
Skip to first unread message

Greg Robbins

unread,
Oct 17, 2012, 10:42:38 PM10/17/12
to gtm-o...@googlegroups.com
Thanks for posting the images. I have passed them on to the server engineers for investigation.

Greg Robbins

unread,
Oct 17, 2012, 10:56:03 PM10/17/12
to gtm-o...@googlegroups.com
Can you confirm that Javascript is enabled for the webview?

Be sure that DEBUG is defined to 1 in your development builds, to enable the assert that checks for Javascript support. (See webViewDidFinishLoad: in  GTMOAuth2ViewControllerTouch)

Hallo TS

unread,
Oct 18, 2012, 2:48:45 AM10/18/12
to gtm-o...@googlegroups.com

I init viewController like this:

viewController = [[GTMOAuth2ViewControllerTouch controllerWithScope:scope

                                                              clientID:clientID

                                                          clientSecret:clientSecret

                                                      keychainItemName:kKeychainItemName

                                                              delegate:self

                                                      finishedSelector:finishedSel]autorelease];

Then push it :
    [self dismissViewControllerAnimated:YES completion:nil];

    [self presentViewController:viewController animated:YES completion:nil];

but the error I said before occured, and the finishedSelector have not executed;

Greg Robbins

unread,
Oct 18, 2012, 9:54:41 PM10/18/12
to gtm-o...@googlegroups.com
The server team can reproduce the problem on clients where Javascript is disabled, so be sure that is not the case for the controller's webview in your app. That problem will be addressed by the server team.


Hallo TS

unread,
Oct 21, 2012, 11:03:02 PM10/21/12
to gtm-o...@googlegroups.com
It works well when I use another mac to run my project. I think it was the simulator that made the error.
I have another question that , when I used the client ID registered as "installed application" -> IOS, error "invalid_client" occur, but when I changed it to  "installed application" -> other, It works well.

Greg Robbins

unread,
Oct 22, 2012, 2:45:32 AM10/22/12
to gtm-o...@googlegroups.com
The API Console's registration incorrectly labels client ID registration as "iOS" when that's only for clients using the Google+ SDK.


Reply all
Reply to author
Forward
0 new messages