Is it possible to automatically log in to Google Drive or Dropbox with static credentials without logging in?

I have a requirement in my project like this.

Customer will post images to their Google Drive / Dropbox account. I need to display these images in my application from disk / Dropbox. I need to provide client credentials in static.So code, is there a way that I can use dropbox without logging in or some where I can set a default password for logging in and logging in automatically.

I'm not sure if this will be possible. Can you give me an offer. Is this possible using Google Drive or Dropbox or Box or any without a server.

+5
source share
1 answer

The Google Drive API does not support username and password as credentials. You should use OAuth2:

https://developers.google.com/drive/ios/auth

However, you can get the update token once, save it in your application and use it to generate access tokens that will be used in requests.

0
source

Source: https://habr.com/ru/post/1203693/


All Articles