我应该在哪里存储登录数据?

编程入门 行业动态 更新时间:2024-10-18 22:26:03
本文介绍了我应该在哪里存储登录数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在创建一个小型应用,可让用户输入他的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

    更多推荐

    我应该在哪里存储登录数据?

    本文发布于:2023-11-14 00:26:53,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1585716.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:数据

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!