bachtiar-madya-p / IO_ASSET-V3.0

1 stars 1 forks source link

Session Manager #20

Open bachtiar-madya-p opened 4 years ago

bachtiar-madya-p commented 4 years ago

Add and implement session manager (JWT) for login session: existing login response

{
    "membercode": "jsmith",
    "isadmin": true,
    "levelid": "fcc139c3-2b83-5141-8cfb-3fe6f02d8c16",
    "departmentid": "fcc139c3-2b83-5141-8cfb-3fe6f02d8c16",
    "description": "Administrator",
    "userid": "d8485577-68b6-50aa-b10b-6847e3d00671",
    "membername": "John Smith",
    "email": "bmp@ic.sg",
    "imageaddress": "/qwert/asdf/zxcv.png",
    "username": "jsmith",
    "memberid": "d8485577-68b6-50aa-b10b-6847e3d00671"
}

need to implement JWT session to login response, proposed

{
    "membercode": "jsmith",
    "isadmin": true,
    "levelid": "fcc139c3-2b83-5141-8cfb-3fe6f02d8c16",
    "departmentid": "fcc139c3-2b83-5141-8cfb-3fe6f02d8c16",
    "description": "Administrator",
    "userid": "d8485577-68b6-50aa-b10b-6847e3d00671",
    "membername": "John Smith",
    "email": "bmp@ic.sg",
    "imageaddress": "/qwert/asdf/zxcv.png",
    "username": "jsmith",
    "memberid": "d8485577-68b6-50aa-b10b-6847e3d00671",
    "session-jwt": "eyJ0eXAiOiJKV1QiLCJjdHkiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ZXlKMGVYQWlPaUpLVjFRaUxDSmxibU1pT2lKQk1USTRRMEpETFVoVE1qVTJJaXdpWVd4bklqb2lVbE5CTVY4MUluMC5BUHFkVG9fLU5ycXVKZmttdDhGYV9xSUhlNERGMm5EdXk5bG1YMGl5NUhmQjFBQUhucWlqdFlmYUhlcFZUTUM4SFdrTkZwak90eWpfY2tiZGhNZFZBX1FwWDM1QlVHNmU2YjhlS2NZbHU3ZmxtTUdyb1R6QlVoQ19Hcjl1R3NGcEhEQjlxSFd2Vml3XzlpbTVrZm9JcWlQZHFiNXJiY3V4NVJYVlczZ05BTEwtNC1OQnZFT1VkbDhpMy1MR0FUSEtFZ3h1bmc5WU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