oauth: Add timeout for state verification

未關閉
#1,007 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
42/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
typescript

研究方向

首先在 @slack/oauth 套件中找到 verifyStateParam,並追蹤其 stateStore 如何提供狀態資料。確定提議的 30 秒逾時應如何與 stateStore 實作互動,以及開發者是否可以覆寫該逾時。完成標準是拒絕過期的狀態,並記錄覆寫行為,且由相關測試涵蓋該行為。

由索引模型根據 Issue 內容生成。

描述

enhancement pkg:oauth semver:minor
Description

Let's add a timeout check in verifyStateParam to not allow stale states to be verified. Probably a 30 second timeout.

Question: Is this something that the developer should be able to override? Other than just providing their own stateStore implementation?

What type of issue is this? (place an x in one of the [ ])
  • enhancement (feature request)
Requirements (place an x in each of the [ ])
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Packages:

Select all that apply:

  • `@slack/oauth
主要語言
TypeScript
星號
3.4k
分支
694
平均合併
1 天 10 小時
30 天內合併 PR
75

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

slackapi/node-slack-sdk 的其他 Issue

查看 slackapi/node-slack-sdk 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。