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

Spring Boot Development Guide: Component-based Development Order and Best Practices

Core Components of Spring Boot Applications Let’s explore the main components and their roles involved in developing Spring Boot applications: 1. Entity An object that maps to a database table. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 @Entity @Table(name = "users") public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(nullable = false) private String username; @Column(nullable = false) private String email; // getter, setter, constructor } 2. Repository An interface that handles database operations. ...

May 25, 2024 · 3 min · 488 words · In-Jun Hwang

Getting to know Spring Boot

What is Spring? Spring is a framework based on the Java language that provides various features for developing enterprise-grade applications. Spring has the following characteristics: Lightweight container: Spring is a lightweight container that manages the creation of objects, their lifecycle, and dependency management. Inversion of Control (IoC): Spring supports Inversion of Control, which allows the Spring container to manage the creation, lifecycle, and dependency management of objects. Dependency Injection (DI): Spring supports Dependency Injection, which allows the Spring container to manage the dependencies between objects. ...

May 16, 2024 · 5 min · 1030 words · In-Jun Hwang