2

I am trying to implement Google Drive SDK in my project but nothing seems to go well, i wanted to upload images and create folder on Google Drive but i am stuck with the error ,which i don't know how to get through, as i found nothing related to the following error.

this

I have strongly followed this link for code

DaImTo
  • 88,623
  • 26
  • 153
  • 389
Zღk
  • 824
  • 7
  • 24
  • a clean way is to use gidsignIn instead. I have anwered at http://stackoverflow.com/questions/40654403/403-error-disallowed-useragent/42045386#42045386 – Jen Jose Apr 08 '17 at 19:17

1 Answers1

1

Google has updated its security restrictions for OAuth flow. They are not going to allow native web-views to initiate OAuth flows. You will need to use the OS browsers to do so.

Modernizing OAuth interactions in Native Apps for Better Usability and Security

You may have to wait for google to update the sample code or figure out how to do it yourself sorry i am not an IOS developer so cant be of any help.

The issue is already logged on the issue forum for Google drive 4919

DaImTo
  • 88,623
  • 26
  • 153
  • 389
  • Already gone through the link given by you, but nothing seems to be helpful their – Zღk Dec 09 '16 at 08:32
  • Again until google fixes the code there is probably nothing you can do. The code you are using is probably using a native web-view which you cant use. – DaImTo Dec 09 '16 at 08:35
  • 1
    yeah can do nothing but wait for the fix..! – Zღk Dec 09 '16 at 09:40
  • add your name to the issue request will help get it more attention. However in my experience Google has code freeze in mid November nothing gets released until the new year. – DaImTo Dec 09 '16 at 09:42
  • @Zck Please let me know do you found the solution of "disallowed_useragent with Google Drive SDK". I have face the same problem. – Rahul Saini Jan 23 '17 at 10:46
  • 1
    solution is to stop using web views. – DaImTo Jan 23 '17 at 10:49
  • yea , i faced such issue and conclude the same , waiting for update – Shobhakar Tiwari Jan 23 '17 at 11:03
  • 1
    @RahulSaini ,yeah i found the solution just follow this link for sign in https://developers.google.com/identity/sign-in/ios/start-integrating – Zღk Jan 24 '17 at 05:27