« ^ »

ゾンビトークン

所要時間: 約 1分

According to RFC 7519, the "exp" claim is OPTIONAL (https://tools.ietf.org/html/rfc7519#section-4.1.4). As a more correct behavior for authorization tokens, we require an "exp" claim. We don't want any zombie tokens walking around.

RFC 7519によると、「exp」クレームは省略可能です (https://tools.ietf.org/html/rfc7519#section-4.1.4)。しかし、認証トー クンを正しく機能させるには「exp」クレームが必要です。本来期限が切れて いるにも関わらず、期限切れかどうかを判定するための情報を持たないいわゆ る「ゾンビトークン」が歩き回るのは望ましくありません。

https://github.com/jazzband/djangorestframework-simplejwt/blob/aa21b20b0d53071a6357417e8d02b434e63a50f6/rest_framework_simplejwt/tokens.py#L89-L92