【问题标题】:Is it safe to save LinkedIn SecretKey in of my code?将 LinkedIn SecretKey 保存在我的代码中是否安全?
【发布时间】:2016-01-12 22:05:31
【问题描述】:

我想问你,将 LinkedIn ConsumerKey 和 ConsumerSecret 像常量一样保存在我的代码中是否安全?

如果不安全,LinkedIn 的正确身份验证方式是什么?

【问题讨论】:

  • 永远不要将私钥放入已发布的代码中...如果您这样做,它实际上会公开。

标签: ios swift linkedin oauth2


【解决方案1】:

即使是编译好的代码,只要有人确定了,还是有可能把钥匙拿出来的。

一般情况下,用户会将凭据传递给您的服务器,在您的服务器端,您将存储私钥,并将过期令牌传回给用户,以便他们可以访问服务。看起来 LinkedIn 可以为您处理服务器端,因此您可以在服务器端进行最少的处理。

https://developer.linkedin.com/docs/oauth2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-02
    • 1970-01-01
    • 2011-01-07
    • 1970-01-01
    • 2014-05-11
    • 1970-01-01
    • 2021-10-31
    • 1970-01-01
    相关资源
    最近更新 更多