[推薦] auth 沒你想像的複雜
Source
https://www.youtube.com/watch?v=h6wBYWWdyYQ 21:04
Summary
auth 的本質,很適合上補習班出來的人看
- Authentication(AuthN): 身份認證(你是誰)
- Authorization(AuthZ): 可以使用哪些權限
- AuthN flow
- user sign-in
- client(browser) stores cookie(session)
- rest of client’s request will bring session
- AuthZ flow
- login user requests data
- server parse and check user from cookie
- server checks if the request action is authorized
- response
發佈時間
2022-12-25