{"id":26414,"date":"2024-10-27T10:52:34","date_gmt":"2024-10-27T10:52:34","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26414"},"modified":"2024-11-26T07:44:01","modified_gmt":"2024-11-26T07:44:01","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","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26414\/","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 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\uc624\ub298 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec <strong>OAuth2<\/strong>\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uc5b4\ub5bb\uac8c \uad6c\ud604\ud558\ub294\uc9c0\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. OAuth2\ub294 \ub300\ud45c\uc801\uc778 \uc778\uc99d \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc678\ubd80 \uc11c\ube44\uc2a4\uc640\uc758 \ud1b5\ud569\uc744 \ud1b5\ud574 \ud6a8\uc728\uc801\uc774\uace0 \uc548\uc804\ud55c \uc778\uc99d\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc2e4\uc9c8\uc801\uc778 \uc608\uc81c\uc640 \ud568\uaed8 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c \uc5b4\ub5bb\uac8c OAuth2 \uc11c\ube44\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294\uc9c0\ub97c \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. OAuth2\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>OAuth2\ub294 \uc790\uc6d0 \uc18c\uc720\uc790\uac00 \uc544\ub2cc \uc81c3\uc758 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc790\uc6d0 \uc18c\uc720\uc790\uc758 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\ub294 \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790\ub294 \ube44\ubc00\ubc88\ud638\ub97c \uacf5\uc720\ud560 \ud544\uc694 \uc5c6\uc774 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. OAuth2\ub294 \ub450 \uac00\uc9c0 \uc8fc\uc694 \uc5ed\ud560\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc790\uc6d0 \uc18c\uc720\uc790 (Resource Owner)<\/strong>: \ubcf4\ud1b5 \uc0ac\uc6a9\uc790\ub97c \uc758\ubbf8\ud558\uba70, \uc790\uc2e0\uc758 \ub370\uc774\ud130\ub97c \uc81c3\uc758 \uc11c\ube44\uc2a4\uc5d0 \uc81c\uacf5\ud560 \uad8c\ud55c\uc744 \ubd80\uc5ec\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ud074\ub77c\uc774\uc5b8\ud2b8 (Client)<\/strong>: \uc0ac\uc6a9\uc790\uc758 \ub370\uc774\ud130\ub97c \uc694\uccad\ud558\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>1.1 OAuth2\uc758 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c<\/h3>\n<ul>\n<li><strong>Authorization Server<\/strong>: \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec\ub97c \ucc98\ub9ac\ud558\ub294 \uc11c\ubc84\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>Resource Server<\/strong>: \ubcf4\ud638\ub41c \uc790\uc6d0(\uc608: API)\uc744 \uc81c\uacf5\ud558\ub294 \uc11c\ubc84\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>Client Credentials<\/strong>: \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2dd\ubcc4\ud558\ub294 \uc815\ubcf4\ub97c \ub2f4\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>Access Token<\/strong>: \uc790\uc6d0 \uc11c\ubc84\uc5d0 \ub300\ud55c \uc811\uadfc \uad8c\ud55c\uc744 \ub098\ud0c0\ub0b4\ub294 \ud1a0\ud070\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud658\uacbd \uc124\uc815<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth2\ub97c \uc124\uc815\ud558\uae30 \uc704\ud574, \uba3c\uc800 \ud544\uc694\ud55c \uc758\uc874\uc131\uc744 \ucd94\uac00\ud574\uc57c \ud569\ub2c8\ub2e4. Gradle \ub610\ub294 Maven\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 Maven\uc744 \uae30\uc900\uc73c\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>2.1 Maven \uc758\uc874\uc131 \ucd94\uac00<\/h3>\n<pre><code>pom.xml\n&lt;dependencies&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-boot-starter-oauth2-client&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-boot-starter-security&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n&lt;\/dependencies&gt;\n<\/code><\/pre>\n<h3>2.2 application.properties \uc124\uc815<\/h3>\n<p>OAuth2 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc0ac\uc6a9\ud560 \uae30\ubcf8 \uc124\uc815\uc744 <code>application.properties<\/code> \ud30c\uc77c\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>application.properties\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.redirect-uri={baseUrl}\/login\/oauth2\/code\/{registrationId}\nspring.security.oauth2.client.registration.google.scope=email,profile\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\nspring.security.oauth2.client.provider.google.user-name-attribute=sub\n<\/code><\/pre>\n<p><span class=\"important\">\uc8fc\uc758:<\/span> \uc704\uc758 <code>YOUR_CLIENT_ID<\/code> \ubc0f <code>YOUR_CLIENT_SECRET<\/code>\ub294 Google Developer Console\uc5d0\uc11c \uc0dd\uc131\ud55c OAuth 2.0 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc790\uaca9 \uc99d\uba85\uc744 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h2>3. OAuth2 \ub85c\uadf8\uc778\/\ub85c\uadf8\uc544\uc6c3 \uad6c\ud604<\/h2>\n<p>\uc774\uc81c OAuth2\ub97c \uc801\uc6a9\ud560 \uc218 \uc788\ub294 \uae30\ubcf8 \uc124\uc815\uc774 \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \ub2e8\uacc4\ub85c, \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>3.1 Security Configuration<\/h3>\n<p>\uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub300\ud55c \ubcf4\uc548 \uc124\uc815\uc744 \uad6c\uc131\ud569\ub2c8\ub2e4. \ub2e4\uc74c \ucf54\ub4dc\ub97c <code>SecurityConfig.java<\/code> \ud074\ub798\uc2a4\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>SecurityConfig.java\nimport 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\n    @Override\n    protected void configure(HttpSecurity http) throws Exception {\n        http\n            .authorizeRequests()\n                .antMatchers(\"\/\", \"\/login\", \"\/css\/**\", \"\/js\/**\").permitAll()\n                .anyRequest().authenticated()\n            .and()\n            .logout()\n                .logoutSuccessUrl(\"\/\")\n                .permitAll()\n            .and()\n            .oauth2Login();\n    }\n}\n<\/code><\/pre>\n<h3>3.2 \ub85c\uadf8\uc778 \ud398\uc774\uc9c0 \uad6c\ud604<\/h3>\n<p>\ub85c\uadf8\uc778 \ud398\uc774\uc9c0\ub97c \ub9cc\ub4e4\uae30 \uc704\ud574 <code>login.html<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \ub2e4\uc74c \ub0b4\uc6a9\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>login.html\n&lt;!DOCTYPE html&gt;\n&lt;html lang=\"ko\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;title&gt;\ub85c\uadf8\uc778&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;\ub85c\uadf8\uc778 \ud398\uc774\uc9c0&lt;\/h1&gt;\n    &lt;a href=\"\/oauth2\/authorization\/google\"&gt;Google\ub85c \ub85c\uadf8\uc778&lt;\/a&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<h3>3.3 \uc0ac\uc6a9\uc790 \uc815\ubcf4 \ucc98\ub9ac<\/h3>\n<p>\ub85c\uadf8\uc778 \ud6c4 \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4\ub97c \ucc98\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <code>OAuth2UserService<\/code>\ub97c \uad6c\ud604\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uac00\uc838\uc62c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>CustomOAuth2UserService.java\nimport org.springframework.security.core.userdetails.UserDetailsService;\nimport org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest;\nimport org.springframework.security.oauth2.client.userinfo.OAuth2UserService;\nimport org.springframework.security.oauth2.core.OAuth2AuthenticationException;\nimport org.springframework.security.oauth2.core.user.OAuth2User;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class CustomOAuth2UserService implements OAuth2UserService&lt;OAuth2UserRequest, OAuth2User&gt; {\n\n    @Override\n    public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2AuthenticationException {\n        \/\/ \uc0ac\uc6a9\uc790 \uc815\ubcf4 \ucc98\ub9ac\n        \/\/ \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ud558\uac70\ub098 \uc138\uc158\uc5d0 \ucd94\uac00\n    }\n}\n<\/code><\/pre>\n<h2>4. OAuth2 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604<\/h2>\n<p>\ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc740 \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\uc758 \uae30\ubcf8 \uc81c\uacf5 \uae30\ub2a5\uc73c\ub85c \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <code>SecurityConfig<\/code> \ud074\ub798\uc2a4\uc5d0\uc11c \ub85c\uadf8\uc544\uc6c3 \uc131\uacf5 \ud6c4 \ub9ac\ub2e4\uc774\ub809\uc158\ud560 URL\uc744 \uc124\uc815\ud558\uc600\uc73c\ubbc0\ub85c, \ub85c\uadf8\uc544\uc6c3 \ubc84\ud2bc\uc744 \ucd94\uac00\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<h3>4.1 \ub85c\uadf8\uc544\uc6c3 \ubc84\ud2bc \ucd94\uac00<\/h3>\n<p>\uba54\uc778 \ud398\uc774\uc9c0\uc5d0 \ub85c\uadf8\uc544\uc6c3 \ubc84\ud2bc\uc744 \ucd94\uac00\ud558\uc5ec \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc544\uc6c3\ud560 \uc218 \uc788\ub3c4\ub85d \ud569\ub2c8\ub2e4. \ub300\ub7b5\uc801\uc778 HTML \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>index.html\n&lt;!DOCTYPE html&gt;\n&lt;html lang=\"ko\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;title&gt;\ud648 \ud398\uc774\uc9c0&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;\ud658\uc601\ud569\ub2c8\ub2e4!&lt;\/h1&gt;\n    &lt;a href=\"\/logout\"&gt;\ub85c\uadf8\uc544\uc6c3&lt;\/a&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<h2>5. \uacb0\ub860<\/h2>\n<p>\uc624\ub298 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth2\ub97c \ud1b5\ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. OAuth2\ub294 \uc678\ubd80 \uc11c\ube44\uc2a4\ub97c \ud65c\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \ubcf4\ub2e4 \uc27d\uace0 \uc548\uc804\ud558\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \uc720\uc6a9\ud55c \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640 OAuth2 \uc124\uc815 \uacfc\uc815\uc744 \uc774\ud574\ud558\uace0, \uc2e4\uc9c8\uc801\uc778 \uad6c\ud604 \ubc29\ubc95\uc744 \uc775\ud614\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h3>5.1 \ucd94\uac00 \ub9ac\uc18c\uc2a4<\/h3>\n<p>\ub354\uc6b1 \uae4a\uc774 \uc788\ub294 \ub0b4\uc6a9\uc744 \uc6d0\ud558\uc2e0\ub2e4\uba74 \uc544\ub798\uc758 \ub9ac\uc18c\uc2a4\ub97c \ucc38\uace0\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4:<\/p>\n<ul>\n<li><a href=\"https:\/\/spring.io\/guides\/tutorials\/spring-boot-oauth2\/\">Spring Guides: OAuth2<\/a><\/li>\n<li><a href=\"https:\/\/www.baeldung.com\/spring-security-oauth\">Baeldung: Spring Security OAuth Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/oauth.net\/2\/\">OAuth 2.0 Specification<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc624\ub298 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth2\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uc5b4\ub5bb\uac8c \uad6c\ud604\ud558\ub294\uc9c0\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. OAuth2\ub294 \ub300\ud45c\uc801\uc778 \uc778\uc99d \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc678\ubd80 \uc11c\ube44\uc2a4\uc640\uc758 \ud1b5\ud569\uc744 \ud1b5\ud574 \ud6a8\uc728\uc801\uc774\uace0 \uc548\uc804\ud55c \uc778\uc99d\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc2e4\uc9c8\uc801\uc778 \uc608\uc81c\uc640 \ud568\uaed8 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c \uc5b4\ub5bb\uac8c OAuth2 \uc11c\ube44\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294\uc9c0\ub97c \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. OAuth2\ub780 \ubb34\uc5c7\uc778\uac00? OAuth2\ub294 \uc790\uc6d0 \uc18c\uc720\uc790\uac00 \uc544\ub2cc \uc81c3\uc758 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26414\/\" 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 \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-26414","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 \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\/26414\/\" \/>\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 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc624\ub298 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth2\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uc5b4\ub5bb\uac8c \uad6c\ud604\ud558\ub294\uc9c0\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. OAuth2\ub294 \ub300\ud45c\uc801\uc778 \uc778\uc99d \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc678\ubd80 \uc11c\ube44\uc2a4\uc640\uc758 \ud1b5\ud569\uc744 \ud1b5\ud574 \ud6a8\uc728\uc801\uc774\uace0 \uc548\uc804\ud55c \uc778\uc99d\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc2e4\uc9c8\uc801\uc778 \uc608\uc81c\uc640 \ud568\uaed8 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c \uc5b4\ub5bb\uac8c OAuth2 \uc11c\ube44\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294\uc9c0\ub97c \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. OAuth2\ub780 \ubb34\uc5c7\uc778\uac00? OAuth2\ub294 \uc790\uc6d0 \uc18c\uc720\uc790\uac00 \uc544\ub2cc \uc81c3\uc758 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 &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 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26414\/\" \/>\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:01+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\/26414\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26414\/\"},\"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 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\",\"datePublished\":\"2024-10-27T10:52:34+00:00\",\"dateModified\":\"2024-11-26T07:44:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26414\/\"},\"wordCount\":53,\"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\/26414\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26414\/\",\"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 \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:34+00:00\",\"dateModified\":\"2024-11-26T07:44:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26414\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26414\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26414\/#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 \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, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, OAuth2 \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\/26414\/","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 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc624\ub298 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth2\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uc5b4\ub5bb\uac8c \uad6c\ud604\ud558\ub294\uc9c0\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. OAuth2\ub294 \ub300\ud45c\uc801\uc778 \uc778\uc99d \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc678\ubd80 \uc11c\ube44\uc2a4\uc640\uc758 \ud1b5\ud569\uc744 \ud1b5\ud574 \ud6a8\uc728\uc801\uc774\uace0 \uc548\uc804\ud55c \uc778\uc99d\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc2e4\uc9c8\uc801\uc778 \uc608\uc81c\uc640 \ud568\uaed8 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c \uc5b4\ub5bb\uac8c OAuth2 \uc11c\ube44\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294\uc9c0\ub97c \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. OAuth2\ub780 \ubb34\uc5c7\uc778\uac00? OAuth2\ub294 \uc790\uc6d0 \uc18c\uc720\uc790\uac00 \uc544\ub2cc \uc81c3\uc758 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 &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 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/26414\/","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:01+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\/26414\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26414\/"},"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 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30","datePublished":"2024-10-27T10:52:34+00:00","dateModified":"2024-11-26T07:44:01+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26414\/"},"wordCount":53,"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\/26414\/","url":"https:\/\/atmokpo.com\/w\/26414\/","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 \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:34+00:00","dateModified":"2024-11-26T07:44:01+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26414\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26414\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26414\/#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 \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":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26414","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=26414"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26414\/revisions"}],"predecessor-version":[{"id":26415,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26414\/revisions\/26415"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}