Redisデータ設計
データベース番号
| DB番号 | データ種別 | Key | Value | TTL | 備考 |
|---|---|---|---|---|---|
| 1 | 画面ログインセッション | session_id | session_id osolab_id created_at expires_at latest_auth_at |
2592000 | 認証画面のログイン状態を管理 |
| 2 | 認可コード | code | code osolab_id client_id created_at expires_at scope code_challenge nonce state |
300 | - |
| 3 | アクセストークン | token | token osolab_id client_id created_at expires_at scope |
900 | - |
| 4 | リフレッシュトークン | token | token osolab_id client_id created_at expires_at scope |
2592000 | - |
| 5 | IDトークンブラックリスト | jti | jti osolab_id client_id revoked_at expires_at scope |
IDトークン有効期限の残り秒数 | - |
| 6 | 認可セッション | session_id | session_id osolab_id client_id expires_at latest_auth_at |
300 | 認可コード発行までの画面用セッション |