Hello, Unfortunately, Google redirects with token and verifier regardless of whether the token has been authorized. The only way to handle denial would be to catch the 400 Bad Request when upgrading to an access token.
Also, I would advise you to use https://www.google.com/m8/feeds/ as scope instead. Best, Alain On Sun, Jul 24, 2011 at 11:29 PM, danster <[email protected]> wrote: > > Regarding Google Contacts app: (http://www.google.com/m8/feeds/) > > If the user grants access to my application, she is correctly > redirected to my callback URL and all is well. however If the user > denies access, she is redirected back to the same callback page, but > this time I get: > > "[oauth.getaccesstoken]: failed to open stream: HTTP request failed! > HTTP/1.0 400 Bad Request > > It's pooping out on the oAuth's getAccessToken call. > > How best to handle a denial? > > Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://code.google.com/apis/contacts/community/forum.html > -- Alain Vongsouvanh -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
