【问题标题】:What is the reason that Piston needs to remove the OAuth keys from the request?Piston 需要从请求中删除 OAuth 密钥的原因是什么?
【发布时间】:2011-09-19 03:48:59
【问题描述】:

我也在这里发布了这个问题,但似乎没有得到回答.. https://bitbucket.org/jespern/django-piston/issue/194/what-is-the-reason-that-piston-needs-to

【问题讨论】:

    标签: django django-piston


    【解决方案1】:

    如果我理解正确,这是出于安全目的。

    Resource 类使用请求对象处理身份验证,然后在调用给定处理程序之前从请求中删除 OAuth 标头。通常,您会希望限制此类事物的可见性。如果您限制密钥等私人信息的公开,您可能会限制漏洞。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-09-15
      • 1970-01-01
      • 2019-08-18
      • 2019-03-08
      • 1970-01-01
      • 2020-06-19
      • 2019-10-09
      相关资源
      最近更新 更多