Re: Unrecognized type: nil. We support user_agent and web_server.

38 views
Skip to first unread message

Greg Robbins

unread,
Mar 20, 2013, 8:14:54 PM3/20/13
to gtm-o...@googlegroups.com
That's adequate but a bit clumsy. I'll see if we can update the library to support a more elegant approach.

Bill Kocik

unread,
Mar 20, 2013, 8:47:05 PM3/20/13
to gtm-o...@googlegroups.com
On Mar 20, 2013, at 8:14 PM, Greg Robbins <grob...@google.com> wrote:

That's adequate but a bit clumsy.

I agree, on both counts.

I'll see if we can update the library to support a more elegant approach.

That would be outstanding. Thanks! (And let me know if I can help.)

-Bill



Greg Robbins

unread,
Mar 21, 2013, 6:15:52 PM3/21/13
to gtm-o...@googlegroups.com
I've added a additionalGrantTypeRequestParameters property to the GTMOAuth2Authentication object to support different parameters for different types of token fetches.
For your sign-in, using it should look something like

viewController.authentication.additionalGrantTypeRequestParameters = @{
  @"authorization_code" : @{ @"type" : @"web_server" },
  @"refresh_token" : @{ @"type" : @"refresh" }
};

Bill Kocik

unread,
Mar 21, 2013, 8:52:29 PM3/21/13
to gtm-o...@googlegroups.com

Works perfectly. Thanks so much!

On Mar 21, 2013, at 6:15 PM, Greg Robbins <grob...@google.com> wrote:

I've added a additionalGrantTypeRequestParameters property to the GTMOAuth2Authentication object to support different parameters for different types of token fetches.



-Bill



Reply all
Reply to author
Forward
0 new messages