Redisデータ設計

データベース番号

DB番号 データ種別 Key Value TTL 備考
1 画面ログインセッション login_session:{session_id} session_id

osolab_id

email

client_id

created_at

expires_at

latest_auth_at
Session_ExpireSec 認証画面のログイン状態を管理
2 認可コード auth_code:{code} code

osolab_id

email

client_id

redirect_uri

scope

code_challenge

code_challenge_method

nonce

state

expire_at
AuthCode.EXPIRE_SEC (300) -
3 アクセストークン access_token:{osolab_id_tokenid_client_id} access_token

osolab_id

client_id

scope

expire_at
AccessToken_ExpireSec tokenは osolab_id(HEX16)_token_id(HEX32)_client_id(数字32桁)
4 リフレッシュトークン refresh_token:{osolab_id_tokenid_client_id} refresh_token

osolab_id

client_id

scope

expire_at
RefreshToken_ExpireSec tokenは osolab_id(HEX16)_token_id(HEX32)_client_id(数字32桁)
6 認可セッション auth_request_session:{auth_request_session_id} auth_request_session_id

response_type

client_id

redirect_uri

state

scope

code_challenge_method

code_challenge

nonce

osolab_id

expires_at
AuthCode.EXPIRE_SEC (300) 認可コード発行までの画面用セッション
7 メール検証セッション signup_session:{signup_session_id} signup_session_id

auth_request_session_id

email

code

verified

created_at

expires_at
SignupSession.ExpireSeconds (1800) サインアップ用メール認証セッション

results matching ""

    No results matching ""