mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-08-23 22:11:29 +08:00
![]() - 背景:在實務需求上,會很有機會需要讓前一個的 client token(credential mode) 並存,以處理多個併發的請求,但原有的行為則會間接允許相同的 client 簽發出兩個能同時被接受的 access token。 - 作法:參考 jwt-auth 設計的 [blacklist_grace_period](https://github.com/tymondesigns/jwt-auth/blob/develop/config/config.php#L238),允許另外的設定去配置 pastClientToken 的 ttl 。 - 影響:在預設不調整的情境下,套件使用者也可保留原本的行為,不需做任何更改。 |
||
---|---|---|
.. | ||
src/main/java/cn/dev33/satoken/oauth2 | ||
.gitignore | ||
pom.xml |