Understanding OAuth 2.0: Role Distribution Between Frontend and Backend

Introduction Let’s dive into a detailed explanation of OAuth 2.0. We’ll examine the entire flow using GitHub OAuth as an example, then break down the implementation roles between the frontend and backend with practical examples. What is OAuth 2.0? OAuth 2.0 is a standard protocol for securely delegating third-party access to user data. In simpler terms, it’s a protocol used when a user wants to grant another application access to their data. It’s commonly used in implementing login systems, allowing users to sign in using their accounts from other services. ...

August 3, 2024 · 6 min · 1236 words · In-Jun Hwang

Getting to Know Authentication Methods (Cookies, Sessions, JWTs)

Authentication/Authorization Authentication: Verifying who a user is. Authorization: Granting a user specific permissions. HTTP Features Statelessness: A feature where the client and server sever their connection after making a request and receiving a response. Request/Response: The server forgets the client’s information after the request and response cycle is complete. These features necessitate additional configurations for implementing services requiring authentication. Cookie A small piece of data that the server sends to the client. ...

June 2, 2024 · 7 min · 1304 words · In-Jun Hwang