bachtiar-madya-p / IO_ASSET-V3.0

1 stars 1 forks source link

Implement login service #21

Closed bachtiar-madya-p closed 4 years ago

bachtiar-madya-p commented 4 years ago

refer to #20 implement login service to login.html

Api POST /authentication/login

Sample payloads

{ "username": "jsmith", "password": "P@ssw0rd" }

Sample success 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", "session-jwt": "token-here" }

Sample error response

{ "reason": "wrong_username_or_password", "code": 401, "message": "Wrong Username or Password" }

alvirayusnia2 commented 4 years ago

is this a template project ?

Pada tanggal Sen, 17 Feb 2020 03:49, Bachtiar Madya Permadi < notifications@github.com> menulis:

Assigned #21 https://github.com/bachtiarmadya/IO_ASSET-V3.0/issues/21 to @alvirayusnia2 https://github.com/alvirayusnia2.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/bachtiarmadya/IO_ASSET-V3.0/issues/21?email_source=notifications&email_token=AOQPK7APOBG4CIHSAMMIQS3RDGREZA5CNFSM4KTIBC4KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWVHLDII#event-3041833377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQPK7F73JJNVIY3LXMSQLTRDGREZANCNFSM4KTIBC4A .

bachtiar-madya-p commented 4 years ago

??