{"id":26416,"date":"2024-10-27T10:52:34","date_gmt":"2024-10-27T10:52:34","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26416"},"modified":"2024-11-26T07:44:06","modified_gmt":"2024-11-26T07:44:06","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-oauth2%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\/26416\/","title":{"rendered":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30"},"content":{"rendered":"<h2>1. \uc11c\ub860<\/h2>\n<p>\n    \ucd5c\uadfc \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4 \uc544\ud0a4\ud14d\ucc98\uc640 \ud074\ub77c\uc6b0\ub4dc \uc11c\ube44\uc2a4\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc774 \uc99d\uac00\ud568\uc5d0 \ub530\ub77c, \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\uc640 \uac19\uc740 \ud504\ub808\uc784\uc6cc\ud06c\uc758 \uc778\uae30\ub3c4 \ub192\uc544\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815 \uc5c6\uc774\ub3c4 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e0\uc18d\ud558\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4.<br \/>\n    \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0\uc11c OAuth2\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>2. OAuth2\ub780?<\/h2>\n<p>\n    OAuth2\ub294 \uc0ac\uc6a9\uc790\uac00 \ud074\ub77c\uc774\uc5b8\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub300\ud55c \uc811\uadfc \uad8c\ud55c\uc744 \uc81c\uc5b4\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\ub294 \uc778\uc99d \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4.<br \/>\n    OAuth2\ub97c \uc0ac\uc6a9\ud558\uba74 \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc758 \uc790\uaca9 \uc99d\uba85\uc744 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uacfc \uacf5\uc720\ud558\uc9c0 \uc54a\uace0\ub3c4 \ud2b9\uc815 \uc790\uc6d0\uc5d0 \ub300\ud55c \uc778\uc99d \ubc0f \uc778\uac00\ub97c \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc774\ub294 \ubcf4\uc548\uc744 \uac15\ud654\ud558\uace0 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \ud06c\uac8c \uac1c\uc120\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.\n<\/p>\n<h3>2.1 OAuth2\uc758 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c<\/h3>\n<ul>\n<li><strong>Resource Owner<\/strong>: \ud074\ub77c\uc774\uc5b8\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\ub294 \uc0ac\uc6a9\uc790<\/li>\n<li><strong>Client<\/strong>: Resource Owner\uc758 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud558\ub824\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158<\/li>\n<li><strong>Resource Server<\/strong>: \uc0ac\uc6a9\uc790\uc758 \uc790\uc6d0\uc774 \uc800\uc7a5\ub41c \uc11c\ubc84<\/li>\n<li><strong>Authorization Server<\/strong>: \uc0ac\uc6a9\uc790\uc758 \uc778\uc99d \uc815\ubcf4\ub97c \ucc98\ub9ac\ud558\uace0 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uac8c \ud1a0\ud070\uc744 \ubc1c\uae09\ud558\ub294 \uc11c\ubc84<\/li>\n<\/ul>\n<h2>3. \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/h2>\n<p>\n    \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud574 \uba3c\uc800 \uc0c8\ub85c\uc6b4 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<br \/>\n    Spring Initializr\ub97c \uc0ac\uc6a9\ud558\uc5ec Maven \ub610\ub294 Gradle \uae30\ubc18\uc758 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<p><strong>3.1 \uc758\uc874\uc131 \ucd94\uac00<\/strong><\/p>\n<p>\n    OAuth2 \uc778\uc99d\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud574, \ub2e4\uc74c \uc758\uc874\uc131\uc744 \ucd94\uac00\ud574\uc57c \ud569\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 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.0.RELEASE'\n}<\/code><\/pre>\n<p><strong>3.2 application.properties \uc124\uc815<\/strong><\/p>\n<p>\n    \ub2e4\uc74c\uc73c\ub85c, <code>src\/main\/resources\/application.properties<\/code> \ud30c\uc77c\uc744 \uc5f4\uc5b4 OAuth2 \uc778\uc99d\uc5d0 \ud544\uc694\ud55c \uc124\uc815\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4.<br \/>\n    \uc544\ub798\uc758 \uc124\uc815 \uc608\uc2dc\ub97c \ucc38\uc870\ud558\uc138\uc694.\n<\/p>\n<pre><code>\nspring.security.oauth2.client.registration.google.client-id={YOUR_CLIENT_ID}\nspring.security.oauth2.client.registration.google.client-secret={YOUR_CLIENT_SECRET}\nspring.security.oauth2.client.registration.google.scope=profile, email\nspring.security.oauth2.client.registration.google.redirect-uri=http:\/\/localhost:8080\/login\/oauth2\/code\/google\nspring.security.oauth2.client.provider.google.authorization-uri=https:\/\/accounts.google.com\/o\/oauth2\/auth\nspring.security.oauth2.client.provider.google.token-uri=https:\/\/oauth2.googleapis.com\/token\nspring.security.oauth2.client.provider.google.user-info-uri=https:\/\/www.googleapis.com\/oauth2\/v3\/userinfo\n<\/code><\/pre>\n<h2>4. OAuth2 \ub85c\uadf8\uc778 \uad6c\ud604<\/h2>\n<p>\n    \uc774\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c OAuth2 \ub85c\uadf8\uc778\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0(Spring Security)\ub97c \ud1b5\ud574 \uac04\ub2e8\ud558\uac8c \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<p><strong>4.1 Security Configuration<\/strong><\/p>\n<p>\n    \uc0c8\ub85c\uc6b4 Java \ud074\ub798\uc2a4\ub97c \uc0dd\uc131\ud558\uc5ec \ubcf4\uc548 \uc124\uc815\uc744 \uad6c\uc131\ud569\ub2c8\ub2e4.\n<\/p>\n<pre><code>import org.springframework.context.annotation.Configuration;\nimport org.springframework.security.config.annotation.web.builders.HttpSecurity;\nimport org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;\nimport org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;\n\n@Configuration\n@EnableWebSecurity\npublic class SecurityConfig extends WebSecurityConfigurerAdapter {\n    @Override\n    protected void configure(HttpSecurity http) throws Exception {\n        http\n            .authorizeRequests()\n                .antMatchers(\"\/\", \"\/login**\", \"\/error**\").permitAll()\n                .anyRequest().authenticated()\n                .and()\n            .oauth2Login();\n    }\n}<\/code><\/pre>\n<h2>5. \uc0ac\uc6a9\uc790 \ud504\ub85c\ud544 \uc870\ud68c<\/h2>\n<p>\n    \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud558\uba74 OAuth2 \uc11c\ubc84\ub85c\ubd80\ud130 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc694\uccad\ud558\uc5ec \ud504\ub85c\ud544\uc744 \ubc1b\uc544\uc62c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc774\ub97c \uc704\ud55c \ucee8\ud2b8\ub864\ub7ec\ub97c \uc791\uc131\ud569\ub2c8\ub2e4.\n<\/p>\n<pre><code>import org.springframework.security.core.annotation.AuthenticationPrincipal;\nimport org.springframework.security.oauth2.core.user.OAuth2User;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Model;\nimport org.springframework.web.bind.annotation.GetMapping;\n\n@Controller\npublic class UserProfileController {\n    @GetMapping(\"\/user\")\n    public String user(@AuthenticationPrincipal OAuth2User principal, Model model) {\n        model.addAttribute(\"name\", principal.getAttribute(\"name\"));\n        model.addAttribute(\"email\", principal.getAttribute(\"email\"));\n        return \"userProfile\";\n    }\n}<\/code><\/pre>\n<h2>6. \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604<\/h2>\n<p>\n    \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc740 \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\uc5d0\uc11c \uae30\ubcf8\uc801\uc73c\ub85c \uc81c\uacf5\ub418\uba70, \uc124\uc815\uc744 \ud1b5\ud574 \uc190\uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc544\ub798\uc640 \uac19\uc774 \ub85c\uadf8\uc544\uc6c3 URL\uacfc \uad00\ub828\ub41c \uc124\uc815\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4.\n<\/p>\n<pre><code>    @Override\n    protected void configure(HttpSecurity http) throws Exception {\n        http\n            .authorizeRequests()\n                .antMatchers(\"\/\", \"\/login**\", \"\/error**\").permitAll()\n                .anyRequest().authenticated()\n                .and()\n            .oauth2Login()\n                .and()\n            .logout()\n                .logoutSuccessUrl(\"\/\")\n                .invalidateHttpSession(true)\n                .deleteCookies(\"JSESSIONID\");\n    }<\/code><\/pre>\n<h2>7. \uacb0\ub860<\/h2>\n<p>\n    \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud558\uc5ec OAuth2\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \uac04\ub2e8\ud55c \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640 OAuth2\ub97c \uc0ac\uc6a9\ud558\uba74 \uc678\ubd80 \uc778\uc99d \uc2dc\uc2a4\ud15c\uacfc \uc27d\uac8c \uc5f0\ub3d9\ud560 \uc218 \uc788\uc73c\uba70, \uc774\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ubcf4\uc548\uc744 \uac15\ud654\ud558\uace0 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \uac1c\uc120\ud558\ub294 \ub370\uc5d0 \ud06c\uac8c \uae30\uc5ec\ud569\ub2c8\ub2e4.<br \/>\n    \uc55e\uc73c\ub85c \uc790\uc2e0\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0 OAuth2\ub97c \uc801\uc6a9\ud558\uc5ec \ubcf4\ub2e4 \uc548\uc804\ud558\uace0 \ud3b8\ub9ac\ud55c \uc11c\ube44\uc2a4\ub97c \uc81c\uacf5\ud574 \ubcf4\uc138\uc694!\n<\/p>\n<h2>8. \ucd94\uac00 \uc790\ub8cc<\/h2>\n<p>\n    \ub354 \ub9ce\uc740 \uc815\ubcf4\ub97c \uc6d0\ud558\uc2dc\uba74 \uacf5\uc2dd \ubb38\uc11c\uc640 \uae30\ud0c0 \uc790\ub8cc\ub97c \ucc38\uc870\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.\n<\/p>\n<ul>\n<li><a href=\"https:\/\/spring.io\/projects\/spring-boot\">Spring Boot \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/spring.io\/projects\/spring-security\">Spring Security \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/oauth.net\/2\/\">OAuth 2.0 \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc11c\ub860 \ucd5c\uadfc \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4 \uc544\ud0a4\ud14d\ucc98\uc640 \ud074\ub77c\uc6b0\ub4dc \uc11c\ube44\uc2a4\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc774 \uc99d\uac00\ud568\uc5d0 \ub530\ub77c, \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\uc640 \uac19\uc740 \ud504\ub808\uc784\uc6cc\ud06c\uc758 \uc778\uae30\ub3c4 \ub192\uc544\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815 \uc5c6\uc774\ub3c4 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e0\uc18d\ud558\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0\uc11c OAuth2\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. OAuth2\ub780? OAuth2\ub294 \uc0ac\uc6a9\uc790\uac00 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26416\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\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-26416","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, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\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\/26416\/\" \/>\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, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uc11c\ub860 \ucd5c\uadfc \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4 \uc544\ud0a4\ud14d\ucc98\uc640 \ud074\ub77c\uc6b0\ub4dc \uc11c\ube44\uc2a4\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc774 \uc99d\uac00\ud568\uc5d0 \ub530\ub77c, \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\uc640 \uac19\uc740 \ud504\ub808\uc784\uc6cc\ud06c\uc758 \uc778\uae30\ub3c4 \ub192\uc544\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815 \uc5c6\uc774\ub3c4 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e0\uc18d\ud558\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0\uc11c OAuth2\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. OAuth2\ub780? OAuth2\ub294 \uc0ac\uc6a9\uc790\uac00 &hellip; \ub354 \ubcf4\uae30 &quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26416\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:52:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:44:06+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\/26416\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26416\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30\",\"datePublished\":\"2024-10-27T10:52:34+00:00\",\"dateModified\":\"2024-11-26T07:44:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26416\/\"},\"wordCount\":43,\"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\/26416\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26416\/\",\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:52:34+00:00\",\"dateModified\":\"2024-11-26T07:44:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26416\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26416\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26416\/#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, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\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, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\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\/26416\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uc11c\ub860 \ucd5c\uadfc \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4 \uc544\ud0a4\ud14d\ucc98\uc640 \ud074\ub77c\uc6b0\ub4dc \uc11c\ube44\uc2a4\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc774 \uc99d\uac00\ud568\uc5d0 \ub530\ub77c, \uc2a4\ud504\ub9c1 \ubd80\ud2b8(Spring Boot)\uc640 \uac19\uc740 \ud504\ub808\uc784\uc6cc\ud06c\uc758 \uc778\uae30\ub3c4 \ub192\uc544\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815 \uc5c6\uc774\ub3c4 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e0\uc18d\ud558\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0\uc11c OAuth2\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. OAuth2\ub780? OAuth2\ub294 \uc0ac\uc6a9\uc790\uac00 &hellip; \ub354 \ubcf4\uae30 \"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/26416\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:52:34+00:00","article_modified_time":"2024-11-26T07:44:06+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\/26416\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26416\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30","datePublished":"2024-10-27T10:52:34+00:00","dateModified":"2024-11-26T07:44:06+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26416\/"},"wordCount":43,"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\/26416\/","url":"https:\/\/atmokpo.com\/w\/26416\/","name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:52:34+00:00","dateModified":"2024-11-26T07:44:06+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26416\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26416\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26416\/#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, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \uc124\uc815 \ud30c\uc77c \uc791\uc131\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\/26416","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=26416"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26416\/revisions"}],"predecessor-version":[{"id":26417,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26416\/revisions\/26417"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}