{"id":26400,"date":"2024-10-27T10:52:29","date_gmt":"2024-10-27T10:52:29","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26400"},"modified":"2024-11-26T07:44:49","modified_gmt":"2024-11-26T07:44:49","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-7","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26400\/","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, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<h2>JWT\ub85c \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604 \ubc0f \ud1a0\ud070 API \uad6c\ud604\ud558\uae30<\/h2>\n<p>\ucd5c\uadfc \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc810\uc810 \ub354 \ubcf5\uc7a1\ud574\uc9c0\uace0 \uc788\uc73c\uba70, \ud2b9\ud788 \ubcf4\uc548 \ubb38\uc81c\ub294 \ubaa8\ub4e0 \uac1c\ubc1c\uc790\uc5d0\uac8c \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\uc5ec JWT(JSON Web Token)\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uacfc \ud1a0\ud070 API\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub294 \uae30\ubcf8\uc801\uc778 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uac1c\ubc1c \uacbd\ud5d8\uc774 \uc788\ub294 \uac1c\ubc1c\uc790\ub97c \ub300\uc0c1\uc73c\ub85c \ud558\uba70, JWT\uc5d0 \ub300\ud55c \uc774\ud574\ub97c \ud3ec\ud568\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\ubaa9\ucc28<\/h2>\n<ul>\n<li><a href=\"#section1\">1. JWT\ub780 \ubb34\uc5c7\uc778\uac00?<\/a><\/li>\n<li><a href=\"#section2\">2. \ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/a><\/li>\n<li><a href=\"#section3\">3. \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f JWT \ubc1c\uae09<\/a><\/li>\n<li><a href=\"#section4\">4. \ud1a0\ud070 \uac80\uc99d \ubc0f \uc778\uac00<\/a><\/li>\n<li><a href=\"#section5\">5. \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604<\/a><\/li>\n<li><a href=\"#section6\">6. API \ud14c\uc2a4\ud2b8<\/a><\/li>\n<li><a href=\"#section7\">7. \uacb0\ub860<\/a><\/li>\n<\/ul>\n<h2 id=\"section1\">1. JWT\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>JWT\ub294 JSON Web Token\uc758 \uc57d\uc790\ub85c, \uc0ac\uc6a9\uc790 \uc778\uc99d \uc815\ubcf4\ub97c \uc548\uc804\ud558\uac8c \uc804\uc1a1\ud558\uae30 \uc704\ud55c \uac1c\ubc29\ud615 \ud45c\uc900(RFC 7519)\uc785\ub2c8\ub2e4. JWT\ub294 \uc790\uc8fc \uc0ac\uc6a9\ub418\ub294 \uc778\uc99d \ubc29\uc2dd \uc911 \ud558\ub098\ub85c, \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc0c1\ud0dc\ub97c \uc720\uc9c0\ud560 \ud544\uc694 \uc5c6\uc774 \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud588\uc74c\uc744 \uc99d\uba85\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. JWT\ub294 \uc138 \ubd80\ubd84\uc73c\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ud5e4\ub354(Header):<\/strong> \ud1a0\ud070\uc758 \uc720\ud615\uacfc \uc11c\uba85 \uc54c\uace0\ub9ac\uc998\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ud398\uc774\ub85c\ub4dc(Payload):<\/strong> \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4 \ubc0f \ud074\ub808\uc784(claim)\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc11c\uba85(Signature):<\/strong> \ud5e4\ub354\uc640 \ud398\uc774\ub85c\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \uc0dd\uc131\ub41c \uc11c\uba85\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>JWT\uc758 \uac00\uc7a5 \ud070 \uc7a5\uc810 \uc911 \ud558\ub098\ub294 Stateless \ubc29\uc2dd\uc73c\ub85c \uc778\uc99d\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4. \uc774\ub294 \uc11c\ubc84\uac00 \uc138\uc158 \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \uc11c\ubc84\uc758 \ubd80\ub2f4\uc744 \uc904\uc774\uace0, \uc2a4\ucf00\uc77c \uc544\uc6c3\uc774 \uc6a9\uc774\ud558\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4.<\/p>\n<h2 id=\"section2\">2. \ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/h2>\n<p>\ud504\ub85c\uc81d\ud2b8\ub97c \uc2dc\uc791\ud558\uae30 \uc804\uc5d0 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. <a href=\"https:\/\/start.spring.io\/\">Spring Initializr<\/a>\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud558\uac8c \ud504\ub85c\uc81d\ud2b8\ub97c \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uc758\uc874\uc131\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>Spring Web<\/li>\n<li>Spring Security<\/li>\n<li>Spring Data JPA<\/li>\n<li>H2 Database (\ub610\ub294 \uc6d0\ud558\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4)<\/li>\n<li>jjwt (Java JWT \ub77c\uc774\ube0c\ub7ec\ub9ac)<\/li>\n<\/ul>\n<p>\ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \ud6c4, \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c `pom.xml`\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre>\n<code>\n<dependencies>\n    <!-- \uae30\uc874 \uc758\uc874\uc131\ub4e4 -->\n    <dependency>\n        <groupid>io.jsonwebtoken<\/groupid>\n        <artifactid>jjwt<\/artifactid>\n        <version>0.9.1<\/version>\n    <\/dependency>\n<\/dependencies>\n<\/code>\n<\/pre>\n<h2 id=\"section3\">3. \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f JWT \ubc1c\uae09<\/h2>\n<p>\uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud574 User \uc5d4\ud2f0\ud2f0\uc640 UserRepository\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uadf8 \ud6c4 \uc11c\ube44\uc2a4 \uacc4\uce35\uc744 \uad6c\uc131\ud558\uace0 JWT\ub97c \uc0dd\uc131\ud558\ub294 \ub85c\uc9c1\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4.<\/p>\n<pre>\n<code>\n\/\/ User \uc5d4\ud2f0\ud2f0 \uc608\uc2dc\n@Entity\npublic class User {\n    @Id\n    @GeneratedValue(strategy = GenerationType.IDENTITY)\n    private Long id;\n    \n    private String username;\n    private String password;\n    \n    \/\/ getters and setters\n}\n<\/code>\n<\/pre>\n<pre>\n<code>\n\/\/ UserRepository \uc608\uc2dc\npublic interface UserRepository extends JpaRepository<user, long=\"\"> {\n    Optional<user> findByUsername(String username);\n}\n<\/user><\/user,><\/code>\n<\/pre>\n<p>\uc774\uc81c JWT\ub97c \uc0dd\uc131\ud558\ub294 \uae30\ub2a5\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre>\n<code>\n\/\/ JwtUtil.java\n@Component\npublic class JwtUtil {\n    \n    private String secretKey = \"secret\"; \/\/ \uc2e4\ubb34\uc5d0\uc11c\ub294 \ud658\uacbd\ubcc0\uc218\ub098 \ubcc4\ub3c4\uc758 \ud30c\uc77c\uc5d0\uc11c \uad00\ub9ac\n    \n    public String generateToken(String username) {\n        return Jwts.builder()\n                    .setSubject(username)\n                    .setIssuedAt(new Date(System.currentTimeMillis()))\n                    .setExpiration(new Date(System.currentTimeMillis() + 1000 * 60 * 60 * 10)) \/\/ 10\uc2dc\uac04\n                    .signWith(SignatureAlgorithm.HS256, secretKey)\n                    .compact();\n    }\n}\n<\/code>\n<\/pre>\n<h3>3.1 \ub85c\uadf8\uc778 API \uad6c\ud604<\/h3>\n<p>\uc774\uc81c \ub85c\uadf8\uc778 \uc694\uccad\uc744 \ucc98\ub9ac\ud560 Controller\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<pre>\n<code>\n\/\/ AuthController.java\n@RestController\n@RequestMapping(\"\/api\/auth\")\npublic class AuthController {\n    \n    @Autowired\n    private AuthenticationManager authenticationManager;\n    \n    @Autowired\n    private JwtUtil jwtUtil;\n    \n    @Autowired\n    private UserRepository userRepository;\n    \n    @PostMapping(\"\/login\")\n    public ResponseEntity<string> login(@RequestBody User user) {\n        authenticate(user.getUsername(), user.getPassword());\n        String token = jwtUtil.generateToken(user.getUsername());\n        return ResponseEntity.ok(token);\n    }\n    \n    private void authenticate(String username, String password) {\n        Authentication authentication = authenticationManager.authenticate(\n            new UsernamePasswordAuthenticationToken(username, password)\n        );\n        SecurityContextHolder.getContext().setAuthentication(authentication);\n    }\n}\n<\/string><\/code>\n<\/pre>\n<h2 id=\"section4\">4. \ud1a0\ud070 \uac80\uc99d \ubc0f \uc778\uac00<\/h2>\n<p>JWT\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc778\uc99d\ub41c \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub824\uba74, \ud544\ud130\ub97c \uad6c\ud604\ud558\uc5ec \uc694\uccad\uc758 \ud5e4\ub354\uc5d0 \uc788\ub294 \ud1a0\ud070\uc744 \uac80\uc99d\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre>\n<code>\n\/\/ JwtRequestFilter.java\n@Component\npublic class JwtRequestFilter extends OncePerRequestFilter {\n\n    @Autowired\n    private JwtUtil jwtUtil;\n\n    @Autowired\n    private UserDetailsService userDetailsService;\n\n    @Override\n    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)\n            throws ServletException, IOException {\n        final String authorizationHeader = request.getHeader(\"Authorization\");\n\n        String username = null;\n        String jwt = null;\n\n        if (authorizationHeader != null &amp;&amp; authorizationHeader.startsWith(\"Bearer \")) {\n            jwt = authorizationHeader.substring(7);\n            username = jwtUtil.extractUsername(jwt);\n        }\n\n        if (username != null &amp;&amp; SecurityContextHolder.getContext().getAuthentication() == null) {\n            UserDetails userDetails = userDetailsService.loadUserByUsername(username);\n            if (jwtUtil.validateToken(jwt, userDetails)) {\n                UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken =\n                        new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());\n                SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n            }\n        }\n        chain.doFilter(request, response);\n    }\n}\n<\/code>\n<\/pre>\n<h2 id=\"section5\">5. \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604<\/h2>\n<p>JWT\ub294 \uc0c1\ud0dc\ub97c \uc720\uc9c0\ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud560 \ub54c\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \ud1a0\ud070\uc744 \uc0ad\uc81c\ud558\uba74 \ub429\ub2c8\ub2e4. \ud558\uc9c0\ub9cc, \uc11c\ubc84\uc5d0\uc11c \ube14\ub799\ub9ac\uc2a4\ud2b8\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc73c\ub85c \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\n<code>\n\/\/ \ub85c\uadf8\uc544\uc6c3 \uc608\uc2dc\n@PostMapping(\"\/logout\")\npublic ResponseEntity<string> logout(HttpServletRequest request) {\n    String token = request.getHeader(\"Authorization\").substring(7);\n    \/\/ \uc5ec\uae30\uc5d0 \ube14\ub799\ub9ac\uc2a4\ud2b8\uc5d0 \ucd94\uac00\ud558\ub294 \ub85c\uc9c1 \uad6c\ud604\n    return ResponseEntity.ok(\"Logout successful\");\n}\n<\/string><\/code>\n<\/pre>\n<h2 id=\"section6\">6. API \ud14c\uc2a4\ud2b8<\/h2>\n<p>Postman\uacfc \uac19\uc740 \ub3c4\uad6c\ub97c \uc0ac\uc6a9\ud558\uc5ec API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub85c\uadf8\uc778 \uc694\uccad \ud6c4, \uc11c\ubc84\uc5d0\uc11c \ubc1c\uae09\ud55c JWT\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubcf4\ud638\ub41c \ub9ac\uc18c\uc2a4\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/p>\n<h2 id=\"section7\">7. \uacb0\ub860<\/h2>\n<p>\uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec JWT \uae30\ubc18 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc2dc\uc2a4\ud15c\uc758 \uc694\uad6c\uc0ac\ud56d\uc5d0 \ub530\ub77c \ub2e4\uc591\ud55c \ubc29\uc2dd\uc73c\ub85c JWT\ub97c \ud65c\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \ubcf4\uc548\uc740 \ud56d\uc0c1 \uc911\uc694\ud55c \uace0\ub824\uc0ac\ud56d\uc784\uc744 \uba85\uc2ec\ud574\uc57c \ud569\ub2c8\ub2e4. \uc55e\uc73c\ub85c \ub354 \ubc1c\uc804\ub41c \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uc5ec \uc2dc\uc2a4\ud15c\uc744 \ud655\uc7a5\ud574 \ub098\uac00\uc2dc\uae38 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JWT\ub85c \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604 \ubc0f \ud1a0\ud070 API \uad6c\ud604\ud558\uae30 \ucd5c\uadfc \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc810\uc810 \ub354 \ubcf5\uc7a1\ud574\uc9c0\uace0 \uc788\uc73c\uba70, \ud2b9\ud788 \ubcf4\uc548 \ubb38\uc81c\ub294 \ubaa8\ub4e0 \uac1c\ubc1c\uc790\uc5d0\uac8c \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\uc5ec JWT(JSON Web Token)\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uacfc \ud1a0\ud070 API\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub294 \uae30\ubcf8\uc801\uc778 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uac1c\ubc1c \uacbd\ud5d8\uc774 \uc788\ub294 \uac1c\ubc1c\uc790\ub97c \ub300\uc0c1\uc73c\ub85c \ud558\uba70, JWT\uc5d0 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26400\/\" 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, \ud1a0\ud070 API \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-26400","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, \ud1a0\ud070 API \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\/26400\/\" \/>\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, \ud1a0\ud070 API \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 \ubc0f \ud1a0\ud070 API \uad6c\ud604\ud558\uae30 \ucd5c\uadfc \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc810\uc810 \ub354 \ubcf5\uc7a1\ud574\uc9c0\uace0 \uc788\uc73c\uba70, \ud2b9\ud788 \ubcf4\uc548 \ubb38\uc81c\ub294 \ubaa8\ub4e0 \uac1c\ubc1c\uc790\uc5d0\uac8c \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\uc5ec JWT(JSON Web Token)\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uacfc \ud1a0\ud070 API\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub294 \uae30\ubcf8\uc801\uc778 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uac1c\ubc1c \uacbd\ud5d8\uc774 \uc788\ub294 \uac1c\ubc1c\uc790\ub97c \ub300\uc0c1\uc73c\ub85c \ud558\uba70, JWT\uc5d0 &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, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26400\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:52:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:44:49+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=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/26400\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26400\/\"},\"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, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30\",\"datePublished\":\"2024-10-27T10:52:29+00:00\",\"dateModified\":\"2024-11-26T07:44:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26400\/\"},\"wordCount\":60,\"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\/26400\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26400\/\",\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:52:29+00:00\",\"dateModified\":\"2024-11-26T07:44:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26400\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26400\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26400\/#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, \ud1a0\ud070 API \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, \ud1a0\ud070 API \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\/26400\/","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, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"JWT\ub85c \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604 \ubc0f \ud1a0\ud070 API \uad6c\ud604\ud558\uae30 \ucd5c\uadfc \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc810\uc810 \ub354 \ubcf5\uc7a1\ud574\uc9c0\uace0 \uc788\uc73c\uba70, \ud2b9\ud788 \ubcf4\uc548 \ubb38\uc81c\ub294 \ubaa8\ub4e0 \uac1c\ubc1c\uc790\uc5d0\uac8c \uc911\uc694\ud55c \uc774\uc288\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\uc5ec JWT(JSON Web Token)\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uacfc \ud1a0\ud070 API\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub294 \uae30\ubcf8\uc801\uc778 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uac1c\ubc1c \uacbd\ud5d8\uc774 \uc788\ub294 \uac1c\ubc1c\uc790\ub97c \ub300\uc0c1\uc73c\ub85c \ud558\uba70, JWT\uc5d0 &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, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/26400\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:52:29+00:00","article_modified_time":"2024-11-26T07:44:49+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":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/26400\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26400\/"},"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, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30","datePublished":"2024-10-27T10:52:29+00:00","dateModified":"2024-11-26T07:44:49+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26400\/"},"wordCount":60,"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\/26400\/","url":"https:\/\/atmokpo.com\/w\/26400\/","name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, JWT\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, \ud1a0\ud070 API \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:52:29+00:00","dateModified":"2024-11-26T07:44:49+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26400\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26400\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26400\/#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, \ud1a0\ud070 API \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":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26400","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=26400"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26400\/revisions"}],"predecessor-version":[{"id":26401,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26400\/revisions\/26401"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}