{"id":26402,"date":"2024-10-27T10:52:30","date_gmt":"2024-10-27T10:52:30","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26402"},"modified":"2024-11-26T07:44:33","modified_gmt":"2024-11-26T07:44:33","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-8","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26402\/","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 \uae30\ubc18 \uc778\uc99d\uc774\ub780"},"content":{"rendered":"<p><body><\/p>\n<article>\n<section>\n<h2>1. \uc11c\ub860<\/h2>\n<p>\n                \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc218\ud589\ud558\uae30 \uc704\ud55c \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc774 \uc874\uc7ac\ud569\ub2c8\ub2e4. \uc774 \uc911\uc5d0\uc11c JSON Web Token(JWT)\uc740 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \uc778\uc99d \ubc29\ubc95 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ud2b9\ud788 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc790\uc5d0\uac8c\ub294 JWT\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778\uacfc \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uc5ec \ubcf4\ub2e4 \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 JWT\uc758 \uac1c\ub150, \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c JWT \uae30\ubc18 \uc778\uc99d \uad6c\ud604 \ubc29\ubc95, \ub85c\uadf8\uc778\uacfc \ub85c\uadf8\uc544\uc6c3\uc758 \uc808\ucc28\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>2. JWT\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>\n                JWT\ub294 JSON \uc6f9 \ud1a0\ud070\uc758 \uc57d\uc790\ub85c, \uc0ac\uc6a9\uc790\uc640 \uc11c\ubc84 \uac04\uc758 \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 \ubcf4\ud1b5 \ub2e4\uc74c\uacfc \uac19\uc740 \uacbd\uc6b0\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4:\n            <\/p>\n<ul>\n<li>\uc0ac\uc6a9\uc790 \uc778\uc99d<\/li>\n<li>\uc815\ubcf4 \uad50\ud658<\/li>\n<li>\uad8c\ud55c \ubd80\uc5ec<\/li>\n<\/ul>\n<p>\n                JWT\uc758 \ud2b9\uc9d5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n            <\/p>\n<ul>\n<li>\uc790\uccb4\uc801\uc73c\ub85c \uc815\ubcf4\ub97c \ub2f4\uc744 \uc218 \uc788\ub2e4.<\/li>\n<li>\uc11c\uba85(Signature)\uc73c\ub85c \ubcc0\uc870\ub97c \ubc29\uc9c0\ud560 \uc218 \uc788\ub2e4.<\/li>\n<li>HTTP \uc804\uc1a1\uc5d0\uc11c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4.<\/li>\n<\/ul>\n<p>\n                JWT\ub294 \uc138 \ubd80\ubd84\uc73c\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4: \ud5e4\ub354(Header), \ud398\uc774\ub85c\ub4dc(Payload), \uc11c\uba85(Signature). \uc774\ub4e4 \uac01\uac01\uc5d0 \ub300\ud55c \uc790\uc138\ud55c \uc124\uba85\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>2.1 \ud5e4\ub354 (Header)<\/h2>\n<p>\n                JWT\uc758 \ud5e4\ub354\ub294 \ub450 \uac00\uc9c0 \uc815\ubcf4\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4. \uc989, \ud1a0\ud070\uc758 \uc720\ud615(type)\uacfc \uc0ac\uc6a9\ud560 \uc54c\uace0\ub9ac\uc998(\uc608: HMAC SHA256 \ub610\ub294 RSA) \uc785\ub2c8\ub2e4.\n            <\/p>\n<pre><code>{\n    \"alg\": \"HS256\",\n    \"typ\": \"JWT\"\n}<\/code><\/pre>\n<h2>2.2 \ud398\uc774\ub85c\ub4dc (Payload)<\/h2>\n<p>\n                \ud398\uc774\ub85c\ub4dc\ub294 JWT\uc758 \ub450 \ubc88\uc9f8 \ubd80\ubd84\uc73c\ub85c, \uc0ac\uc6a9\uc790\uc5d0 \ub300\ud55c \uc815\ubcf4\uc640 \ud074\ub808\uc784(claims)\uc744 \ub2f4\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ud074\ub808\uc784\uc740 \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4, \uad8c\ud55c \ubc0f \uae30\ud0c0 \uba54\ud0c0\ub370\uc774\ud130\ub97c \ud3ec\ud568\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4:\n            <\/p>\n<pre><code>{\n    \"sub\": \"1234567890\",\n    \"name\": \"John Doe\",\n    \"iat\": 1516239022\n}<\/code><\/pre>\n<p>\n                \uc774 \uc608\uc2dc\uc5d0\uc11c &#8220;sub&#8221;\ub294 \uc0ac\uc6a9\uc790\uc758 \uace0\uc720 ID, &#8220;name&#8221;\uc740 \uc0ac\uc6a9\uc790\uba85, &#8220;iat&#8221;\ub294 \ubc1c\ud589\ub41c \uc2dc\uac04\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>2.3 \uc11c\uba85 (Signature)<\/h2>\n<p>\n                \ub9c8\uc9c0\ub9c9\uc73c\ub85c \uc11c\uba85\uc740 \ud5e4\ub354\uc640 \ud398\uc774\ub85c\ub4dc\ub97c \uacb0\ud569\ud558\uace0 \ube44\ubc00 \ud0a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud574\uc2dc\ub97c \uc0dd\uc131\ud55c \uac83\uc785\ub2c8\ub2e4. \uc774\ub807\uac8c \ud558\uba74 \ub370\uc774\ud130\uc758 \ubb34\uacb0\uc131\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4:\n            <\/p>\n<pre><code>HMACSHA256(\n    base64UrlEncode(header) + \".\" +\n    base64UrlEncode(payload),\n    secret)<\/code><\/pre>\n<p>\n                \uc774 \uacfc\uc815\uc744 \ud1b5\ud574 JWT\ub97c \uc0dd\uc131\ud558\uace0, \uc218\uc2e0\uc790\ub294 \uc18c\uc720\ud55c \ube44\ubc00 \ud0a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud1a0\ud070\uc758 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>3. \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uc124\uc815<\/h2>\n<p>\n                \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud558\uc5ec JWT \uae30\ubc18\uc758 \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud574, \uba3c\uc800 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud504\ub85c\uc81d\ud2b8\ub97c \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4. Spring Initializr\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0c8\ub85c\uc6b4 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uace0 \ud544\uc694\ud55c \uc885\uc18d\uc131(Ddependencies)\uc744 \ucd94\uac00\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Spring Web, Spring Security, \uadf8\ub9ac\uace0 jjwt \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4.\n            <\/p>\n<pre><code>dependencies {\n    implementation 'org.springframework.boot:spring-boot-starter-web'\n    implementation 'org.springframework.boot:spring-boot-starter-security'\n    implementation 'io.jsonwebtoken:jjwt:0.9.1'\n}<\/code><\/pre>\n<\/section>\n<section>\n<h2>4. \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\uc640 JWT \uc124\uc815<\/h2>\n<p>\n                \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0(Spring Security)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uae30\ubcf8 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec\ub97c \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 SecurityConfig \ud074\ub798\uc2a4\ub97c \uc791\uc131\ud558\uace0 HTTP \uc694\uccad\uc5d0 \ub300\ud55c \ubcf4\uc548 \uaddc\uce59\uc744 \uc815\uc758\ud574\uc57c \ud569\ub2c8\ub2e4.\n            <\/p>\n<pre><code>@Configuration\n@EnableWebSecurity\npublic class SecurityConfig extends WebSecurityConfigurerAdapter {\n    @Override\n    protected void configure(HttpSecurity http) throws Exception {\n        http.csrf().disable()\n            .authorizeRequests()\n            .antMatchers(\"\/api\/auth\/**\").permitAll()\n            .anyRequest().authenticated()\n            .and()\n            .sessionManagement()\n            .sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n    }\n}<\/code><\/pre>\n<p>\n                \uc704 \uc124\uc815\uc5d0\uc11c\ub294 \/api\/auth\/** \ub77c\uc6b0\ud2b8\ub97c \ubaa8\ub4e0 \uc694\uccad\uc5d0 \ub300\ud574 \ud5c8\uc6a9\ud558\uace0, \ub098\uba38\uc9c0 \uc694\uccad\uc740 \uc778\uc99d\uc774 \ud544\uc694\ud558\ub3c4\ub85d \uc124\uc815\ud588\uc2b5\ub2c8\ub2e4. \uc138\uc158 \uad00\ub9ac\ub294 STATLESS\ub85c \uc124\uc815\ud558\uc5ec JWT\ub97c \uc0ac\uc6a9\ud55c \ud1a0\ud070 \uae30\ubc18 \uc778\uc99d\uc744 \ud65c\uc6a9\ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>5. \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc JWT \ubc1c\uae09<\/h2>\n<p>\n                \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud558\uba74, \uc11c\ubc84\ub294 \ud574\ub2f9 \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4\ub97c \uae30\ubc18\uc73c\ub85c JWT\ub97c \ubc1c\uae09\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud55c AuthController \ud074\ub798\uc2a4\ub97c \uc791\uc131\ud558\uace0, \ub85c\uadf8\uc778 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \uba54\uc11c\ub4dc\ub97c \uad6c\ud604\ud574\uc57c \ud569\ub2c8\ub2e4.\n            <\/p>\n<pre><code>@RestController\n@RequestMapping(\"\/api\/auth\")\npublic class AuthController {\n    @Autowired\n    private AuthenticationManager authenticationManager;\n\n    @Autowired\n    private JwtProvider jwtProvider;\n\n    @PostMapping(\"\/login\")\n    public ResponseEntity<?> authenticateUser(@RequestBody LoginRequest loginRequest) {\n        Authentication authentication = authenticationManager.authenticate(\n            new UsernamePasswordAuthenticationToken(loginRequest.getUsername(), loginRequest.getPassword()));\n\n        SecurityContextHolder.getContext().setAuthentication(authentication);\n\n        String jwt = jwtProvider.generateToken(authentication);\n        return ResponseEntity.ok(new JwtResponse(jwt));\n    }\n}<\/code><\/pre>\n<\/section>\n<section>\n<h2>6. \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604<\/h2>\n<p>\n                JWT\ub294 \uc0c1\ud0dc \uac12\uc744 \uc11c\ubc84\uc5d0 \uc800\uc7a5\ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604\uc774 \ub2e4\ub978 \ubc29\uc2dd\uacfc\ub294 \ub2e4\ub985\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21\uc5d0\uc11c JWT\ub97c \uc0ad\uc81c\ud558\uac70\ub098 \ub9cc\ub8cc\uc2dc\ud0a4\ub294 \ubc29\uc2dd\uc73c\ub85c \ub85c\uadf8\uc544\uc6c3\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \ub85c\uadf8\uc544\uc6c3 \uc694\uccad\uc744 \ubcf4\ub0b4\uba74, JWT \ud1a0\ud070\uc744 \uc0ad\uc81c\ud558\uace0 \uc774\ud6c4 \uc694\uccad\uc5d0\uc11c\ub294 \ub354 \uc774\uc0c1 \uc774 \ud1a0\ud070\uc744 \uc0ac\uc6a9\ud558\uc9c0 \uc54a\ub3c4\ub85d \ud569\ub2c8\ub2e4.\n            <\/p>\n<pre><code>@PostMapping(\"\/logout\")\n    public ResponseEntity<?> logoutUser() {\n        \/\/ \ud074\ub77c\uc774\uc5b8\ud2b8 \ud1a0\ud070 \uc0ad\uc81c\ub97c \uc704\ud55c \uc751\ub2f5 \ucc98\ub9ac \uc804\ub2ec\n        return ResponseEntity.ok(new MessageResponse(\"User logged out successfully!\"));\n    }<\/code><\/pre>\n<\/section>\n<section>\n<h2>7. JWT \uc720\ud6a8\uc131 \uac80\uc99d<\/h2>\n<p>\n                \uc11c\ubc84\uc5d0\uc11c JWT\ub97c \uac80\uc99d\ud558\ub294 \ubc29\ubc95\uc740 \ud1a0\ud070\uc758 \uc11c\uba85\uc744 \ud655\uc778\ud558\uace0, \uc720\ud6a8 \uae30\uac04(expiration)\uc744 \uccb4\ud06c\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc744 \uc704\ud574 JwtProvider\ub97c \uc791\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<pre><code>@Component\npublic class JwtProvider {\n    @Value(\"${jwt.secret}\")\n    private String jwtSecret;\n\n    public String generateToken(Authentication authentication) {\n        return Jwts.builder()\n            .setSubject(authentication.getName())\n            .setIssuedAt(new Date())\n            .setExpiration(new Date((new Date()).getTime() + 86400000)) \/\/ 1\uc77c\n            .signWith(SignatureAlgorithm.HS512, jwtSecret)\n            .compact();\n    }\n\n    public boolean validateToken(String token) {\n        try {\n            Jwts.parser().setSigningKey(jwtSecret).parseClaimsJws(token);\n            return true;\n        } catch (Exception e) {\n            return false;\n        }\n    }\n}<\/code><\/pre>\n<\/section>\n<section>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\n                JWT\ub97c \ud1b5\ud574 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c \ud6a8\uc728\uc801\uc73c\ub85c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc74c\uc744 \ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc774\uc640 \uac19\uc740 \ud1a0\ud070 \uae30\ubc18 \uc778\uc99d \ubc29\uc2dd\uc744 \ud1b5\ud574 \uc11c\ubc84\uc758 \uc0c1\ud0dc\ub97c \uc720\uc9c0\ud558\uc9c0 \uc54a\uace0\ub3c4 \ubcf4\ub2e4 \uc720\uc5f0\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ub97c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c \uc124\uba85\ud55c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \uc5ec\ub7ec\ubd84\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0 JWT\ub97c \ud65c\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ud604\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.\n            <\/p>\n<p>\n                \uc55e\uc73c\ub85c\ub3c4 \ub2e4\uc591\ud55c \uc6f9 \uac1c\ubc1c \uad00\ub828 \uc8fc\uc81c\ub85c \uc5ec\ub7ec\ubd84\uaed8 \uc720\uc775\ud55c \uc815\ubcf4\uc640 \uac15\uc88c\ub97c \uc81c\uacf5\ud560 \uc608\uc815\uc785\ub2c8\ub2e4. \uac10\uc0ac\ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc11c\ub860 \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc218\ud589\ud558\uae30 \uc704\ud55c \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc774 \uc874\uc7ac\ud569\ub2c8\ub2e4. \uc774 \uc911\uc5d0\uc11c JSON Web Token(JWT)\uc740 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \uc778\uc99d \ubc29\ubc95 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ud2b9\ud788 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc790\uc5d0\uac8c\ub294 JWT\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778\uacfc \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uc5ec \ubcf4\ub2e4 \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 JWT\uc758 \uac1c\ub150, \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26402\/\" 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 \uae30\ubc18 \uc778\uc99d\uc774\ub780&#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-26402","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 \uae30\ubc18 \uc778\uc99d\uc774\ub780 - \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\/26402\/\" \/>\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 \uae30\ubc18 \uc778\uc99d\uc774\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uc11c\ub860 \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc218\ud589\ud558\uae30 \uc704\ud55c \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc774 \uc874\uc7ac\ud569\ub2c8\ub2e4. \uc774 \uc911\uc5d0\uc11c JSON Web Token(JWT)\uc740 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \uc778\uc99d \ubc29\ubc95 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ud2b9\ud788 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc790\uc5d0\uac8c\ub294 JWT\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778\uacfc \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uc5ec \ubcf4\ub2e4 \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 JWT\uc758 \uac1c\ub150, \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c &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 \uae30\ubc18 \uc778\uc99d\uc774\ub780&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26402\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:52:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:44:33+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=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/26402\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26402\/\"},\"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 \uae30\ubc18 \uc778\uc99d\uc774\ub780\",\"datePublished\":\"2024-10-27T10:52:30+00:00\",\"dateModified\":\"2024-11-26T07:44:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26402\/\"},\"wordCount\":67,\"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\/26402\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26402\/\",\"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 \uae30\ubc18 \uc778\uc99d\uc774\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:52:30+00:00\",\"dateModified\":\"2024-11-26T07:44:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26402\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26402\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26402\/#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 \uae30\ubc18 \uc778\uc99d\uc774\ub780\"}]},{\"@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 \uae30\ubc18 \uc778\uc99d\uc774\ub780 - \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\/26402\/","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 \uae30\ubc18 \uc778\uc99d\uc774\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uc11c\ub860 \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc218\ud589\ud558\uae30 \uc704\ud55c \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc774 \uc874\uc7ac\ud569\ub2c8\ub2e4. \uc774 \uc911\uc5d0\uc11c JSON Web Token(JWT)\uc740 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \uc778\uc99d \ubc29\ubc95 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ud2b9\ud788 \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc790\uc5d0\uac8c\ub294 JWT\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778\uacfc \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uc5ec \ubcf4\ub2e4 \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 JWT\uc758 \uac1c\ub150, \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c &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 \uae30\ubc18 \uc778\uc99d\uc774\ub780\"","og_url":"https:\/\/atmokpo.com\/w\/26402\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:52:30+00:00","article_modified_time":"2024-11-26T07:44:33+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":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/26402\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26402\/"},"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 \uae30\ubc18 \uc778\uc99d\uc774\ub780","datePublished":"2024-10-27T10:52:30+00:00","dateModified":"2024-11-26T07:44:33+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26402\/"},"wordCount":67,"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\/26402\/","url":"https:\/\/atmokpo.com\/w\/26402\/","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 \uae30\ubc18 \uc778\uc99d\uc774\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:52:30+00:00","dateModified":"2024-11-26T07:44:33+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26402\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26402\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26402\/#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 \uae30\ubc18 \uc778\uc99d\uc774\ub780"}]},{"@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\/26402","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=26402"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26402\/revisions"}],"predecessor-version":[{"id":26403,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26402\/revisions\/26403"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}