sharafatkhan / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

GTMOAuth2WindowController returns error when authenticating in a separate window (no sheet) #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Open the auth panel in a separate window:

    NSBundle *frameworkBundle = [NSBundle bundleForClass:[GTMOAuth2WindowController class]];
    GTMOAuth2WindowController *windowController;
    windowController = [[GTMOAuth2WindowController alloc] initWithScope:scope
                                                                clientID:googleClientID
                                                            clientSecret:googleSecret
                                                        keychainItemName:kKeychainItemName
                                                         resourceBundle:frameworkBundle];// autorelease];

    [windowController signInSheetModalForWindow:nil
                                       delegate:self
                               finishedSelector:@selector(windowController:finishedWithAuth:error:)];

What is the expected output? What do you see instead?

At the end of the auth process, I always receive:

Error Domain=com.google.GTMOAuth2 Code=-1000 "The operation couldn’t be 
completed. (com.google.GTMOAuth2 error -1000.)"

What version of the product are you using? On what operating system?

trunk rev: 690
Mac OS 10.7.1

Please provide any additional information below.

Original issue reported on code.google.com by mirko.vi...@gmail.com on 24 Aug 2011 at 8:05

GoogleCodeExporter commented 9 years ago
Thanks for pointing out this issue. It's fixed now in the top-of-trunk sources.

http://code.google.com/p/gtm-oauth2/source/detail?r=51

Original comment by grobb...@google.com on 24 Aug 2011 at 8:26