hydra login consent node
https://github.com/ory/hydra-login-consent-node

When login success, context data be saved .
Can use
GET https://openid.hydra:9002/oauth2/auth/sessions/consent?subject=foo@bar.com HTTP/1.1
check by subject.

routes/login.js

  
hydra.acceptLoginRequest(challenge, {  
  
    context: {  
      "test1": "test1",  
      "test2": { "test2i": "test2i"}  
    },  

Database keep context

===== Postgresql command ====

1. Login Postgresql (pg) docker

psql hydra -U hydra

#login pg (already in db cmd)
\dt;
select * from hydra_oauth2_consent_request;

  
\=============== userinfo ===============  

GET https://openid.hydra:9001/userinfo
Authorization: Bearer pFmYrUWtkGswx6RjvsGfgUAl4gV88id90P7hVLHUfQ4.AhbkWRawXV35S_V6Nq-Hf3DlBZ8Dl622sB4M3dg_hNQ

{
“sid”: “891db392-859c-49d9-958c-83135f6986ee”,
“sub”: “foo@bar.com
}

sid can check by use sub.  
  
GET https://openid.hydra:9002/oauth2/auth/sessions/consent?subject=foo@bar.com HTTP/1.1