{"id":26390,"date":"2024-10-27T10:52:26","date_gmt":"2024-10-27T10:52:26","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26390"},"modified":"2024-11-26T07:45:15","modified_gmt":"2024-11-26T07:45:15","slug":"%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%97%94%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-jwt%eb%a1%9c-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%eb%a1%9c%ea%b7%b8%ec%95%84%ec%9b%83-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26390\/","title":{"rendered":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<header>\n<p>JWT\ub85c \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604\ud558\uae30<\/p>\n<\/header>\n<section>\n<h2>\ubaa9\ucc28<\/h2>\n<ol>\n<li>\uc11c\ub860<\/li>\n<li>Spring Boot \uc18c\uac1c<\/li>\n<li>JWT\ub780?<\/li>\n<li>\ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/li>\n<li>\ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5 \uad6c\ud604<\/li>\n<li>\ub85c\uadf8\uc778 \uae30\ub2a5 \uad6c\ud604<\/li>\n<li>JWT\ub97c \uc774\uc6a9\ud55c \uc778\uc99d \ubc0f \uc778\uac00<\/li>\n<li>JWT \ud1a0\ud070 \uc0dd\uc131 \ubc0f \uac80\uc99d<\/li>\n<li>\ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604<\/li>\n<li>\uacb0\ub860<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>\uc11c\ub860<\/h2>\n<p>\uc694\uc998 \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc778\uc99d(authentication)\uacfc \uc778\uac00(authorization)\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ud2b9\ud788, RESTful API\ub97c \uac1c\ubc1c\ud560 \ub54c\ub294 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc9c0\uc6d0\ud574\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0, \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\uc2dd\uc5d0\ub3c4 \uace0\ub824\ud574\uc57c \ud560 \uc0ac\ud56d\uc774 \ub9ce\uc2b5\ub2c8\ub2e4. \uc624\ub298\uc740 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec JWT(JSON Web Token) \uae30\ubc18\uc758 \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uc2dc\uc2a4\ud15c\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>Spring Boot \uc18c\uac1c<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub294 \uc790\ubc14 \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\uc778 \uc2a4\ud504\ub9c1(Spring)\uc5d0\uc11c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ucd08\uae30\ud654 \ubc0f \uc124\uc815\uc744 \uac04\uc18c\ud654\ud558\uae30 \uc704\ud574 \ub9cc\ub4e4\uc5b4\uc9c4 \ud504\ub85c\uc81d\ud2b8\uc785\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ud544\uc694\ud55c \uc124\uc815\uacfc \uc885\uc18d\uc131\uc744 \uc790\ub3d9\uc73c\ub85c \uad00\ub9ac\ud558\uc5ec \uac1c\ubc1c\uc790\ub294 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc5d0 \uc9d1\uc911\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4.<\/p>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc7a5\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ube60\ub978 \ud504\ub85c\ud1a0\ud0c0\uc785 \uac1c\ubc1c\uc774 \uac00\ub2a5\ud558\ub2e4.<\/li>\n<li>\uae30\ubcf8\uc801\uc778 \uc124\uc815\uc774 \uc790\ub3d9\uc73c\ub85c \uc774\ub8e8\uc5b4\uc9c4\ub2e4.<\/li>\n<li>\ub0b4\uc7a5 \uc11c\ubc84 \ud1b0\ucea3\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \ubcc4\ub3c4\uc758 \uc11c\ubc84 \uc124\uc815\uc774 \ud544\uc694 \uc5c6\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>JWT\ub780?<\/h2>\n<p>JWT(JSON Web Token)\ub294 JSON \ud3ec\ub9f7\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc815\ubcf4\ub97c \uc548\uc804\ud558\uac8c \uc804\uc1a1\ud558\uae30 \uc704\ud55c \ucef4\ud329\ud2b8\ud558\uace0 \ub3c5\ub9bd\uc801\uc778 \ud45c\uc900\uc785\ub2c8\ub2e4. JWT\ub294 \uc8fc\ub85c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uc778\uac00\ub97c \ucc98\ub9ac\ud558\ub294\ub370 \ub9ce\uc774 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. JWT\uc758 \ud2b9\uc9d5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc790\uccb4\uc801\uc73c\ub85c \uc2e0\ub8b0\uc131\uc744 \uac00\uc9c0\uace0 \uc788\ub2e4: \uc804\uc1a1\ub418\ub294 \ub370\uc774\ud130\uac00 \uc11c\uba85\ub418\uc5b4 \uac80\uc99d\uc774 \uac00\ub2a5\ud558\ub2e4.<\/li>\n<li>\uad6c\uc870\uac00 \uac04\ub2e8\ud558\uc5ec \uc27d\uac8c \ubd84\uc11d\ud560 \uc218 \uc788\ub2e4.<\/li>\n<li>HTTP \ud5e4\ub354\ub97c \ud1b5\ud574 \uc804\uc1a1\uc774 \uac00\ub2a5\ud574 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \ud638\ud658\uc131\uc774 \uc88b\ub2e4.<\/li>\n<\/ul>\n<p>JWT\ub294 \uc138 \uac00\uc9c0 \uad6c\uc131\uc694\uc18c\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ud5e4\ub354(Header): \ud1a0\ud070 \ud0c0\uc785\uacfc \uc11c\uba85 \uc54c\uace0\ub9ac\uc998 \uc815\ubcf4\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud398\uc774\ub85c\ub4dc(Payload): \uc0ac\uc6a9\uc790 \uc815\ubcf4 \ubc0f \ud074\ub808\uc784(Claims)\uc744 \ud3ec\ud568\ud558\ub294 \ubd80\ubd84\uc785\ub2c8\ub2e4.<\/li>\n<li>\uc11c\uba85(Signature): \ud5e4\ub354\uc640 \ud398\uc774\ub85c\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \uc11c\uba85\ud558\uc5ec \ub370\uc774\ud130\uc758 \ubb34\uacb0\uc131\uc744 \ubcf4\uc7a5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>\ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud574 <a href=\"https:\/\/start.spring.io\/\" target=\"_blank\" rel=\"noopener\">Spring Initializr<\/a> \ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ud544\uc694\ud55c \uc758\uc874\uc131\uc73c\ub85c\ub294 \uc6f9, JPA, Spring Security, Lombok, \uadf8\ub9ac\uace0 JWT \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        <groupid>com.example<\/groupid>\n        <artifactid>jwt-demo<\/artifactid>\n        <version>0.0.1-SNAPSHOT<\/version>\n        <packaging>jar<\/packaging>\n\n        <dependencies>\n            <dependency>\n                <groupid>org.springframework.boot<\/groupid>\n                <artifactid>spring-boot-starter-web<\/artifactid>\n            <\/dependency>\n            <dependency>\n                <groupid>org.springframework.boot<\/groupid>\n                <artifactid>spring-boot-starter-data-jpa<\/artifactid>\n            <\/dependency>\n            <dependency>\n                <groupid>org.springframework.boot<\/groupid>\n                <artifactid>spring-boot-starter-security<\/artifactid>\n            <\/dependency>\n            <dependency>\n                <groupid>io.jsonwebtoken<\/groupid>\n                <artifactid>jjwt<\/artifactid>\n                <version>0.9.1<\/version>\n            <\/dependency>\n            <dependency>\n                <groupid>org.projectlombok<\/groupid>\n                <artifactid>lombok<\/artifactid>\n                <version>1.18.12<\/version>\n                <scope>provided<\/scope>\n            <\/dependency>\n            <dependency>\n                <groupid>com.h2database<\/groupid>\n                <artifactid>h2<\/artifactid>\n                <scope>runtime<\/scope>\n            <\/dependency>\n        <\/dependencies>\n        <\/code><\/pre>\n<p>build.gradle \ud30c\uc77c\uc5d0 \uc704 \uc758\uc874\uc131\uc744 \ucd94\uac00\ud55c \ud6c4, \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud569\ub2c8\ub2e4. <code>application.properties<\/code> \ud30c\uc77c\uc5d0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \ubc0f JPA \uc124\uc815\uc744 \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5 \uad6c\ud604<\/h2>\n<p>\ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5\uc740 \uae30\ubcf8\uc801\uc73c\ub85c \uc0ac\uc6a9\uc790\uac00 \uc81c\uacf5\ud55c \uc815\ubcf4\ub97c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ud558\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \ud68c\uc6d0 \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\uae30 \uc704\ud574 JPA \uc5d4\ud2f0\ud2f0 \ud074\ub798\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        import lombok.AllArgsConstructor;\n        import lombok.Getter;\n        import lombok.NoArgsConstructor;\n        import lombok.Setter;\n\n        import javax.persistence.*;\n\n        @Entity\n        @Table(name = \"users\")\n        @Getter @Setter @NoArgsConstructor @AllArgsConstructor\n        public class User {\n            @Id\n            @GeneratedValue(strategy = GenerationType.IDENTITY)\n            private Long id;\n\n            @Column(unique = true, nullable = false)\n            private String username;\n\n            @Column(nullable = false)\n            private String password;\n\n            private String role;\n        }\n        <\/code><\/pre>\n<p>\uc0ac\uc6a9\uc790\uac00 \ud68c\uc6d0\uac00\uc785 \uc2dc \uc81c\uacf5\ud558\ub294 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ucc98\ub9ac\ud558\uae30 \uc704\ud55c \ub9ac\ud3ec\uc9c0\ud1a0\ub9ac \uc778\ud130\ud398\uc774\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        import org.springframework.data.jpa.repository.JpaRepository;\n\n        public interface UserRepository extends JpaRepository<user, long=\"\"> {\n            User findByUsername(String username);\n        }\n        <\/user,><\/code><\/pre>\n<p>\ud68c\uc6d0\uac00\uc785 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \uc11c\ube44\uc2a4 \ud074\ub798\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        import org.springframework.beans.factory.annotation.Autowired;\n        import org.springframework.security.crypto.password.PasswordEncoder;\n        import org.springframework.stereotype.Service;\n\n        @Service\n        public class UserService {\n            @Autowired\n            private UserRepository userRepository;\n\n            @Autowired\n            private PasswordEncoder passwordEncoder;\n\n            public void registerUser(User user) {\n                user.setPassword(passwordEncoder.encode(user.getPassword()));\n                user.setRole(\"ROLE_USER\");\n                userRepository.save(user);\n            }\n        }\n        <\/code><\/pre>\n<\/section>\n<section>\n<h2>\ub85c\uadf8\uc778 \uae30\ub2a5 \uad6c\ud604<\/h2>\n<p>\ub85c\uadf8\uc778 \uae30\ub2a5\uc740 \uc0ac\uc6a9\uc790\uac00 \uc778\uc99d \uc815\ubcf4\ub97c \uc81c\uacf5\ud558\uc5ec \uc11c\ubc84\uc5d0\uc11c JWT \ud1a0\ud070\uc744 \ubc1c\uae09\ubc1b\ub294 \uacfc\uc815\uc785\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 \uc778\uc99d\uc744 \ucc98\ub9ac\ud558\ub294 \ud544\ud130 \ud074\ub798\uc2a4\ub97c \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        import org.springframework.beans.factory.annotation.Autowired;\n        import org.springframework.security.authentication.AuthenticationManager;\n        import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;\n        import org.springframework.security.core.Authentication;\n        import org.springframework.security.core.userdetails.UserDetails;\n        import org.springframework.security.core.userdetails.UserDetailsService;\n        import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;\n\n        public class JwtAuthenticationFilter extends UsernamePasswordAuthenticationFilter {\n            @Autowired\n            private AuthenticationManager authenticationManager;\n\n            @Autowired\n            private JwtTokenProvider jwtTokenProvider;\n\n            @Override\n            public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) {\n                String username = request.getParameter(\"username\");\n                String password = request.getParameter(\"password\");\n                UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username, password);\n                return authenticationManager.authenticate(authRequest);\n            }\n\n            @Override\n            protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, Authentication authResult) throws IOException, ServletException {\n                String token = jwtTokenProvider.createToken(authResult.getName());\n                response.addHeader(\"Authorization\", \"Bearer \" + token);\n                response.getWriter().write(\"\ub85c\uadf8\uc778 \uc131\uacf5\");\n            }\n        }\n        <\/code><\/pre>\n<\/section>\n<section>\n<h2>JWT\ub97c \uc774\uc6a9\ud55c \uc778\uc99d \ubc0f \uc778\uac00<\/h2>\n<p>JWT\ub97c \uc0ac\uc6a9\ud558\uc5ec API \ud638\ucd9c \uc2dc \uc0ac\uc6a9\uc790\ub97c \uc778\uc99d\ud558\ub294 \ubc29\ubc95\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4. JWT \ud1a0\ud070\uc774 \uc5c6\uac70\ub098 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uacbd\uc6b0 \uc694\uccad\uc744 \ucc28\ub2e8\ud558\ub294 \ud544\ud130\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        import org.springframework.security.core.Authentication;\n        import org.springframework.security.core.context.SecurityContextHolder;\n        import org.springframework.stereotype.Component;\n        import org.springframework.web.filter.GenericFilterBean;\n\n        import javax.servlet.FilterChain;\n        import javax.servlet.ServletException;\n        import javax.servlet.http.HttpServletRequest;\n        import javax.servlet.http.HttpServletResponse;\n        import java.io.IOException;\n\n        @Component\n        public class JwtAuthenticationFilter extends GenericFilterBean {\n            @Autowired\n            private JwtTokenProvider jwtTokenProvider;\n\n            @Override\n            public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {\n                String token = request.getHeader(\"Authorization\");\n\n                if (token != null &amp;&amp; jwtTokenProvider.validateToken(token)) {\n                    Authentication authentication = jwtTokenProvider.getAuthentication(token);\n                    SecurityContextHolder.getContext().setAuthentication(authentication);\n                }\n\n                chain.doFilter(request, response);\n            }\n        }\n        <\/code><\/pre>\n<\/section>\n<section>\n<h2>JWT \ud1a0\ud070 \uc0dd\uc131 \ubc0f \uac80\uc99d<\/h2>\n<p>JWT \ud1a0\ud070\uc744 \uc0dd\uc131\ud558\uace0 \uac80\uc99d\ud558\uae30 \uc704\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud074\ub798\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774 \ud074\ub798\uc2a4\ub294 JWT\ub97c \ucc98\ub9ac\ud558\ub294 \ub2e4\uc591\ud55c \uba54\uc18c\ub4dc\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        import io.jsonwebtoken.Claims;\n        import io.jsonwebtoken.JwtBuilder;\n        import io.jsonwebtoken.JwtParser;\n        import io.jsonwebtoken.Jwts;\n        import io.jsonwebtoken.SignatureAlgorithm;\n        import org.springframework.stereotype.Component;\n\n        import java.util.Date;\n        import java.util.HashMap;\n        import java.util.Map;\n\n        @Component\n        public class JwtTokenProvider {\n            private final String SECRET_KEY = \"mySecretKey\";\n\n            public String createToken(String username) {\n                Map<string, object=\"\"> claims = new HashMap&lt;&gt;();\n                return Jwts.builder()\n                        .setClaims(claims)\n                        .setSubject(username)\n                        .setIssuedAt(new Date())\n                        .setExpiration(new Date(System.currentTimeMillis() + 1000 * 60 * 60 * 10)) \/\/ 10\uc2dc\uac04\n                        .signWith(SignatureAlgorithm.HS256, SECRET_KEY)\n                        .compact();\n            }\n\n            public boolean validateToken(String token) {\n                try {\n                    Jwts.parser().setSigningKey(SECRET_KEY).parseClaimsJws(token);\n                    return true;\n                } catch (Exception e) {\n                    return false;\n                }\n            }\n            \n            public Authentication getAuthentication(String token) {\n                \/\/ \uc0ac\uc6a9\uc790 \uc778\uc99d \ub17c\ub9ac \uad6c\ud604\n            }\n        }\n        <\/string,><\/code><\/pre>\n<\/section>\n<section>\n<h2>\ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604<\/h2>\n<p>\ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc740 \uc0ac\uc6a9\uc790\uac00 \uc778\uc99d\uc744 \uc885\ub8cc\ud558\ub294 \uac83\uc73c\ub85c, \ubcf4\ud1b5 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c JWT \ud1a0\ud070\uc744 \uc0ad\uc81c\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c \uad6c\ud604\ud569\ub2c8\ub2e4. \ub354 \ub098\uc544\uac00, \ub9cc\uc57d \uc11c\ubc84\uc5d0\uc11c \ud1a0\ud070\uc744 \ubb34\ud6a8\ud654\ud574\uc57c \ud55c\ub2e4\uba74 \ube14\ub799\ub9ac\uc2a4\ud2b8\ub97c \uad00\ub9ac\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n        import org.springframework.web.bind.annotation.*;\n\n        @RestController\n        @RequestMapping(\"\/auth\")\n        public class AuthController {\n            @PostMapping(\"\/logout\")\n            public ResponseEntity<?> logout(HttpServletRequest request) {\n                String token = request.getHeader(\"Authorization\");\n                \/\/ \ud1a0\ud070 \ube14\ub799\ub9ac\uc2a4\ud2b8 \ub4f1\ub85d \ub85c\uc9c1\n                return ResponseEntity.ok(\"\ub85c\uadf8\uc544\uc6c3 \uc131\uacf5\");\n            }\n        }\n        <\/code><\/pre>\n<\/section>\n<section>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec JWT \uae30\ubc18\uc758 \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. JWT\ub294 \uc6f9 \uc11c\ube44\uc2a4\uc758 \uc778\uc99d \ubc0f \uc778\uac00\ub97c \ucc98\ub9ac\ud558\ub294\ub370 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc774\uba70, \ud5a5\ud6c4 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c \ud070 \ub3c4\uc6c0\uc774 \ub420 \uac83\uc785\ub2c8\ub2e4. \ucd94\uac00\uc801\uc73c\ub85c, \ubcf4\uc548 \ubc0f \uc138\uc158 \uad00\ub9ac\uc5d0 \uad00\ud55c \ub354 \ub9ce\uc740 \uc815\ubcf4\ub97c \uc5f0\uad6c\ud558\uc5ec \ub354 \ub098\uc740 \ubcf4\uc548\uc131\uc744 \ud655\ubcf4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>JW\uc774 \uc778\uc99d \ubc0f \uc778\uac00\uc640 \uad00\ub828\ub41c \uc9c0\uc2dd\uc744 \ud655\uc7a5\ud558\uae38 \uc6d0\ud558\uc2e0\ub2e4\uba74, \ubcf4\uc548 \ubaa8\ubc94 \uc0ac\ub840\uc640 \ub354\ubd88\uc5b4 OAuth2 \ubc0f OpenID Connect \uac19\uc740 \ud504\ub85c\ud1a0\ucf5c\uc744 \ud559\uc2b5\ud558\ub294 \uac83\uc744 \ucd94\ucc9c\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JWT\ub85c \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604\ud558\uae30 \ubaa9\ucc28 \uc11c\ub860 Spring Boot \uc18c\uac1c JWT\ub780? \ud504\ub85c\uc81d\ud2b8 \uc124\uc815 \ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5 \uad6c\ud604 \ub85c\uadf8\uc778 \uae30\ub2a5 \uad6c\ud604 JWT\ub97c \uc774\uc6a9\ud55c \uc778\uc99d \ubc0f \uc778\uac00 JWT \ud1a0\ud070 \uc0dd\uc131 \ubc0f \uac80\uc99d \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604 \uacb0\ub860 \uc11c\ub860 \uc694\uc998 \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc778\uc99d(authentication)\uacfc \uc778\uac00(authorization)\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ud2b9\ud788, RESTful API\ub97c \uac1c\ubc1c\ud560 \ub54c\ub294 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc9c0\uc6d0\ud574\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0, \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\uc2dd\uc5d0\ub3c4 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26390\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-26390","post","type-post","status-publish","format-standard","hentry","category-21"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/26390\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"JWT\ub85c \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604\ud558\uae30 \ubaa9\ucc28 \uc11c\ub860 Spring Boot \uc18c\uac1c JWT\ub780? \ud504\ub85c\uc81d\ud2b8 \uc124\uc815 \ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5 \uad6c\ud604 \ub85c\uadf8\uc778 \uae30\ub2a5 \uad6c\ud604 JWT\ub97c \uc774\uc6a9\ud55c \uc778\uc99d \ubc0f \uc778\uac00 JWT \ud1a0\ud070 \uc0dd\uc131 \ubc0f \uac80\uc99d \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604 \uacb0\ub860 \uc11c\ub860 \uc694\uc998 \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc778\uc99d(authentication)\uacfc \uc778\uac00(authorization)\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ud2b9\ud788, RESTful API\ub97c \uac1c\ubc1c\ud560 \ub54c\ub294 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc9c0\uc6d0\ud574\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0, \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\uc2dd\uc5d0\ub3c4 &hellip; \ub354 \ubcf4\uae30 &quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26390\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:52:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:45:15+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/26390\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26390\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\",\"datePublished\":\"2024-10-27T10:52:26+00:00\",\"dateModified\":\"2024-11-26T07:45:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26390\/\"},\"wordCount\":61,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/26390\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26390\/\",\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:52:26+00:00\",\"dateModified\":\"2024-11-26T07:45:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26390\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26390\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26390\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/26390\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"JWT\ub85c \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604\ud558\uae30 \ubaa9\ucc28 \uc11c\ub860 Spring Boot \uc18c\uac1c JWT\ub780? \ud504\ub85c\uc81d\ud2b8 \uc124\uc815 \ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5 \uad6c\ud604 \ub85c\uadf8\uc778 \uae30\ub2a5 \uad6c\ud604 JWT\ub97c \uc774\uc6a9\ud55c \uc778\uc99d \ubc0f \uc778\uac00 JWT \ud1a0\ud070 \uc0dd\uc131 \ubc0f \uac80\uc99d \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604 \uacb0\ub860 \uc11c\ub860 \uc694\uc998 \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc778\uc99d(authentication)\uacfc \uc778\uac00(authorization)\ub294 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ud2b9\ud788, RESTful API\ub97c \uac1c\ubc1c\ud560 \ub54c\ub294 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc9c0\uc6d0\ud574\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0, \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\uc2dd\uc5d0\ub3c4 &hellip; \ub354 \ubcf4\uae30 \"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/26390\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:52:26+00:00","article_modified_time":"2024-11-26T07:45:15+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"3\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/26390\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26390\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30","datePublished":"2024-10-27T10:52:26+00:00","dateModified":"2024-11-26T07:45:15+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26390\/"},"wordCount":61,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/26390\/","url":"https:\/\/atmokpo.com\/w\/26390\/","name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:52:26+00:00","dateModified":"2024-11-26T07:45:15+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26390\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26390\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26390\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, JWT \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":26620,"url":"https:\/\/atmokpo.com\/w\/26620\/","url_meta":{"origin":26390,"position":0},"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3, \ud68c\uc6d0 \uac00\uc785 \uad6c\ud604, \uc758\uc874\uc131 \ucd94\uac00\ud558\uae30","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0 \uad00\ud55c \uae30\ubcf8\uc801\uc778 \ub0b4\uc6a9\uc744 \ub2e4\ub8e8\uace0, \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778, \ub85c\uadf8\uc544\uc6c3, \ud68c\uc6d0 \uac00\uc785 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub780? \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub294 \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc2a4\ud504\ub9c1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub354\uc6b1 \uc27d\uac8c \uc124\uc815\ud558\uace0 \uc2e4\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \ubcf5\uc7a1\ud55c \uc124\uc815 \uacfc\uc815\uc744 \ucd5c\uc18c\ud654\ud558\uace0, \ub0b4\uc7a5\ud615 \uc11c\ubc84\ub97c\u2026","rel":"","context":"&quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%95%a4%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26432,"url":"https:\/\/atmokpo.com\/w\/26432\/","url_meta":{"origin":26390,"position":1},"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, \uc758\uc874\uc131 \ucd94\uac00\ud558\uae30","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc800\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: [\ud604\uc7ac \ub0a0\uc9dc] 1. \uc11c\ub860 \ud604\ub300 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \ubd80\uc5ec\ub97c \uc704\ud574 OAuth2 \ud504\ub85c\ud1a0\ucf5c\uc744 \ub9ce\uc774 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc774 \ud504\ub85c\ud1a0\ucf5c\uc740 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc548\uc804\ud558\uace0 \uc720\uc5f0\ud55c \ubc29\uc2dd\uc73c\ub85c \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec OAuth2\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778\uacfc \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc548\ub0b4\ud569\ub2c8\ub2e4. 2. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\u2026","rel":"","context":"&quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%95%a4%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38402,"url":"https:\/\/atmokpo.com\/w\/38402\/","url_meta":{"origin":26390,"position":2},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc561\uc138\uc2a4 \ud1a0\ud070 \uc0dd\uc131\uacfc \uac80\uc99d","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. \uc11c\ub860 FastAPI\ub294 Python\uc744 \uae30\ubc18\uc73c\ub85c \ud558\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uba70 \ucd5c\uc801\ud654\ub41c \uc131\ub2a5\uc744 \uc790\ub791\ud569\ub2c8\ub2e4. RESTful API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 FastAPI\uc758 \ud2b9\uc9d5 \uc911 \ud558\ub098\ub294 \ub370\uc774\ud130 \uac80\uc99d\uacfc \uc790\ub3d9 \ubb38\uc11c \uc0dd\uc131 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc561\uc138\uc2a4 \ud1a0\ud070\uc744 \uc0dd\uc131\ud558\uace0 \uac80\uc99d\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ub2e4\ub8f9\ub2c8\ub2e4. \uc561\uc138\uc2a4\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":43394,"url":"https:\/\/atmokpo.com\/w\/43394\/","url_meta":{"origin":26390,"position":3},"title":"[\uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14]  \uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14 \uac1c\ubc1c\uc5d0\uc11c\uc758 \ubcf4\uc548 \uad00\ub828 \uace0\ub824\uc0ac\ud56d","author":"root","date":"2024\ub144 11\uc6d4 27\uc77c","format":false,"excerpt":"\uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14\ub294 \ud06c\ub85c\uc2a4 \ud50c\ub7ab\ud3fc \ubaa8\ubc14\uc77c \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \uac1c\ubc1c\uc744 \uc704\ud55c \uc720\uc6a9\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \ubaa8\ub4e0 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c\uc640 \ub9c8\ucc2c\uac00\uc9c0\ub85c, \ubcf4\uc548\uc740 \uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14\uc5d0\uc11c\ub3c4 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \ubaa8\ubc14\uc77c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \ub370\uc774\ud130, \uac1c\uc778\uc815\ubcf4, \uacb0\uc81c \uc815\ubcf4 \ub4f1\uc744 \ub2e4\ub8e8\uae30 \ub54c\ubb38\uc5d0 \uac15\ub825\ud55c \ubcf4\uc548 \uc870\uce58\uac00 \uc694\uad6c\ub429\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c \uace0\ub824\ud574\uc57c \ud560 \ubcf4\uc548 \uad00\ub828 \uc0ac\ud56d\ub4e4\uc744 \uc138\ubd80\uc801\uc73c\ub85c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\u2026","rel":"","context":"&quot;cordova&quot;\uc5d0\uc11c","block_context":{"text":"cordova","link":"https:\/\/atmokpo.com\/w\/category\/cordova\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26670,"url":"https:\/\/atmokpo.com\/w\/26670\/","url_meta":{"origin":26390,"position":4},"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc81c\uc5b4\uc758 \uc5ed\uc804\uacfc \uc758\uc874\uc131 \uc8fc\uc785","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. \uc11c\ub860 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \uc790\ubc14 \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uc2e0\uc18d\ud558\uac8c \ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc758 \ud575\uc2ec \uac1c\ub150 \uc911 \ud558\ub098\uc778 \uc81c\uc5b4\uc758 \uc5ed\uc804(Inversion of Control, IoC)\uacfc \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection, DI)\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ub450 \uac00\uc9c0 \uac1c\ub150\uc740 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc870\ub97c \uc5b4\ub5bb\uac8c \uc124\uacc4\ud558\uace0\u2026","rel":"","context":"&quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%95%a4%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25580,"url":"https:\/\/atmokpo.com\/w\/25580\/","url_meta":{"origin":26390,"position":5},"title":"\ud50c\ub7ec\ud130 \uac15\uc88c: 16.1 \ud30c\uc774\uc5b4\ubca0\uc774\uc2a4 \uc18c\uac1c","author":"root","date":"2024\ub144 10\uc6d4 26\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: 2024\ub144 11\uc6d4 26\uc77c \ubaa9\ucc28 1. \ud30c\uc774\uc5b4\ubca0\uc774\uc2a4\ub780? 2. \ud30c\uc774\uc5b4\ubca0\uc774\uc2a4\uc758 \uc8fc\uc694 \uae30\ub2a5 3. \ud50c\ub7ec\ud130 \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \ud30c\uc774\uc5b4\ubca0\uc774\uc2a4 \uc124\uc815\ud558\uae30 4. Firestore \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud0d0\uc0c9 5. \uc0ac\uc6a9\uc790 \uc778\uc99d 6. \ud478\uc2dc \uc54c\ub9bc 7. \uc790\uc8fc \ubc1c\uc0dd\ud558\ub294 \ubb38\uc81c \ubc0f \ud574\uacb0\ubc95 8. \uacb0\ub860 1. \ud30c\uc774\uc5b4\ubca0\uc774\uc2a4\ub780? \ud30c\uc774\uc5b4\ubca0\uc774\uc2a4(Firebase)\ub294 \uad6c\uae00\uc774 \uc81c\uacf5\ud558\ub294 \ubaa8\ubc14\uc77c \ubc0f \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c \ud50c\ub7ab\ud3fc\uc785\ub2c8\ub2e4. \uc774 \ud50c\ub7ab\ud3fc\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758\u2026","rel":"","context":"&quot;\ud50c\ub7ec\ud130 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\ud50c\ub7ec\ud130 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ed%94%8c%eb%9f%ac%ed%84%b0-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=26390"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26390\/revisions"}],"predecessor-version":[{"id":26391,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26390\/revisions\/26391"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}