我正在创建一个小型应用,可让用户输入他的Google帐户名和密码,并在他的Google云端硬盘帐户中向他显示可用的电子表格.
我想让用户能够保存以下数据:
是或否(如果自动连接到他的帐户).
Google帐户名(电子邮件)
密码
我想这样做,所以程序启动时他不必再次写它们.
将这些数据保存在用户计算机上的推荐方法是什么?
(对不起,我的英语)
解决方案应用程序开发人员切勿存储用户凭据. 当用户首次通过您的应用登录到Google帐户时,请从Google获取针对您的应用的OAuth 2密钥.将该密钥安全地存储在您的应用中.
有关Google API的更多详细信息
I'm creating a small app that let the user enter his Google account Name and Password and show him available spreadsheets on his Google Drive Account.
I want to let the user the ability to save this following data:
true or false, if to connect to his account automaticaly.
Google Account Name(email)
Password
I want to do this, so he doesn't have to write them again when the program start.
What is the reccommended way to save this data on the user computer?
(sorry for my english)
解决方案Application developers should never store user credentials. Please get an OAuth 2 key for your application from google, when the user logins to google account via your app for the first time. Store that key in your app securely.
More details about google API's here
更多推荐
我应该在哪里存储登录数据?
发布评论