{"id":26442,"date":"2024-10-27T10:52:41","date_gmt":"2024-10-27T10:52:41","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26442"},"modified":"2024-11-26T07:42:54","modified_gmt":"2024-11-26T07:42:54","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-oauth-%ec%84%9c%eb%b9%84%ec%8a%a4%ec%97%90-%ec%8a%b9%ec%9d%b8%eb%90%9c-uri-%ec%b6%94","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26442\/","title":{"rendered":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\uac00 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. OAuth 2.0\uc740 \uadf8\ub7ec\ud55c \uc778\uc99d\uc744 \uc704\ud55c \uc778\uae30 \uc788\ub294 \ud504\ub85c\ud1a0\ucf5c \uc911 \ud558\ub098\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc758 \uc790\uaca9 \uc99d\uba85\uc744 \uc81c3\uc790 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub178\ucd9c\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc11c\ube44\uc2a4\uc5d0 \uc548\uc804\ud558\uac8c \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. OAuth \uac1c\uc694<\/h2>\n<p>OAuth 2.0\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud55c \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc8fc\ub85c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. OAuth\ub97c \uc0ac\uc6a9\ud560 \ub54c, \uc0ac\uc6a9\uc790\ub294 \uc790\uc2e0\uc758 \ub85c\uadf8\uc778 \uc815\ubcf4\ub97c \uc81c\uacf5\ud558\uc9c0 \uc54a\uace0\ub3c4 \ub2e4\ub978 \uc11c\ube44\uc2a4\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub294 \ud1a0\ud070\uc744 \ubc1b\uc544 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. OAuth 2.0\uc740 \ub9ce\uc740 \ub2e4\uc591\ud55c \uc778\uc99d \uc81c\uacf5\uc790\ub97c \uc9c0\uc6d0\ud558\uba70, \uac01 \uc81c\uacf5\uc790\ub294 \uc778\uc99d \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uae30 \uc704\ud574 URI\ub97c \ud544\uc694\ub85c \ud569\ub2c8\ub2e4.<\/p>\n<h2>2. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640 OAuth \ud1b5\ud569\ud558\uae30<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uba74 OAuth 2.0 \uc778\uc99d\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth 2.0 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc124\uc815\ud558\uace0, \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI\ub97c \ucd94\uac00\ud558\ub294 \uac83\uc744 \ubaa9\ud45c\ub85c \ud569\ub2c8\ub2e4.<\/p>\n<h3>2.1. \ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/h3>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud504\ub85c\uc81d\ud2b8\ub97c \uc2dc\uc791\ud558\uae30 \uc704\ud574 <code>spring-boot-starter-web<\/code> \ubc0f <code>spring-boot-starter-security<\/code> \uc758\uc874\uc131\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4. \ub610\ud55c OAuth 2.0 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 <code>spring-boot-starter-oauth2-client<\/code> \uc758\uc874\uc131\ub3c4 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>    \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-security&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<\/code><\/pre>\n<h2>3. \uc2b9\uc778\ub41c URI\uc758 \uc774\ud574<\/h2>\n<p>OAuth 2.0\uc5d0\uc11c \uc2b9\uc778\ub41c URI\ub294 \uc0ac\uc6a9\uc790\uac00 \uc778\uc99d \ud6c4 \ub9ac\ub514\ub809\uc158\ub420 \uc8fc\uc18c\uc785\ub2c8\ub2e4. \uc774 URI\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \ub4f1\ub85d\ud560 \ub54c \uc9c0\uc815\ub418\uba70, \uc778\uc99d \uc11c\ube44\uc2a4\uac00 \uc0ac\uc6a9\uc790 \uc778\uc99d \ud6c4 \uc774 URI\ub85c \ub9ac\ub514\ub809\uc158\ud558\uc5ec \uc751\ub2f5\uc744 \ubcf4\ub0c5\ub2c8\ub2e4. \uc774\ub294 \uc0ac\uc6a9\uc790 \uc815\ubcf4\uc640 \ud568\uaed8 \uc561\uc138\uc2a4 \ud1a0\ud070\uc744 \ud3ec\ud568\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>4. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30<\/h2>\n<h3>4.1. application.yml \uc124\uc815<\/h3>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c\ub294 <code>application.yml<\/code> \ub610\ub294 <code>application.properties<\/code> \ud30c\uc77c\uc744 \ud1b5\ud574 OAuth \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc18d\uc131\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uad6c\uae00 OAuth 2.0 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc124\uc815\ud558\ub294 \uc608\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>\nspring:\n  security:\n    oauth2:\n      client:\n        registration:\n          google:\n            client-id: YOUR_CLIENT_ID\n            client-secret: YOUR_CLIENT_SECRET\n            scope: profile, email\n            redirect-uri: \"{baseUrl}\/login\/oauth2\/code\/{registrationId}\"\n        provider:\n          google:\n            authorization-uri: https:\/\/accounts.google.com\/o\/oauth2\/auth\n            token-uri: https:\/\/oauth2.googleapis.com\/token\n            user-info-uri: https:\/\/www.googleapis.com\/oauth2\/v3\/userinfo\n<\/code><\/pre>\n<h3>4.2. \uc6f9 \ubcf4\uc548 \uc124\uc815<\/h3>\n<p>OAuth 2.0 \uc778\uc99d\uc744 \uc0ac\uc6a9\ud558\ub824\uba74 \uc6f9 \ubcf4\uc548 \uad6c\uc131\uc744 \ucd94\uac00\ud574\uc57c \ud569\ub2c8\ub2e4. \uc544\ub798\uc758 \uc124\uc815\uc740 \uc778\uc99d\ub41c \uc0ac\uc6a9\uc790\ub9cc \ud2b9\uc815 \uacbd\ub85c\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\nimport org.springframework.context.annotation.Bean;\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\").permitAll() \/\/ \ub85c\uadf8\uc778 \uc5c6\uc774 \uc811\uadfc \uac00\ub2a5\ud55c \uacbd\ub85c\n                .anyRequest().authenticated() \/\/ \ub2e4\ub978 \ubaa8\ub4e0 \uc694\uccad\uc740 \uc778\uc99d \ud544\uc694\n                .and()\n            .oauth2Login(); \/\/ OAuth 2.0 \ub85c\uadf8\uc778\n    }\n}\n<\/code><\/pre>\n<h3>4.3. \uc2b9\uc778\ub41c URI \ud14c\uc2a4\ud2b8<\/h3>\n<p>\uc774\uc81c \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc2e4\ud589\ud558\uace0 <a href=\"http:\/\/localhost:8080\">http:\/\/localhost:8080<\/a>\uc73c\ub85c \uc774\ub3d9\ud558\uc5ec OAuth \ub85c\uadf8\uc778\uc744 \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uad6c\uae00 \ub85c\uadf8\uc778 \ubc84\ud2bc\uc774 \ub098\ud0c0\ub098\uba70, \uc0ac\uc6a9\uc790\ub294 \uc774\ub97c \ud1b5\ud574 \uc778\uc99d\uc744 \ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>5. \uc2b9\uc778\ub41c URI \ubaa8\ub2c8\ud130\ub9c1<\/h2>\n<p>OAuth 2.0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \uc2b9\uc778\ub41c URI\uac00 \uc5b4\ub5bb\uac8c \uc791\ub3d9\ud558\ub294\uc9c0 \uc774\ud574\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \ubc1c\uc0dd\ud560 \uc218 \uc788\ub294 \uba87 \uac00\uc9c0 \uc774\uc288\uc640 \ud574\uacb0 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>5.1. \ub9ac\ub514\ub809\uc158 \uc5d0\ub7ec<\/h3>\n<p>\ub9ac\ub514\ub809\uc158 URI\uac00 \uc798\ubabb \uc124\uc815\ub418\uba74 \uc0ac\uc6a9\uc790\uac00 \uc778\uc99d \ud6c4 \uc801\uc808\ud55c \ud398\uc774\uc9c0\ub85c \ub9ac\ub514\ub809\ud2b8\ub418\uc9c0 \uc54a\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacbd\uc6b0, \ud074\ub77c\uc774\uc5b8\ud2b8 \ub4f1\ub85d \uc2dc \uc2b9\uc778\ub41c \ub9ac\ub514\ub809\uc158 URI\ub97c \uc815\ud655\ud558\uac8c \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4:<\/p>\n<pre><code>    \n    redirect-uri: http:\/\/localhost:8080\/login\/oauth2\/code\/google\n<\/code><\/pre>\n<h3>5.2. Scope \ubb38\uc81c<\/h3>\n<p>\uc694\uccad\ub41c \uc2a4\ucf54\ud504\uac00 \uc798\ubabb \uc124\uc815\ub41c \uacbd\uc6b0\uc5d0\ub3c4 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc2a4\ucf54\ud504\ub97c \uc798\ubabb \uc9c0\uc815\ud558\uba74 \uc778\uc99d\uc744 \uc644\ub8cc\ud558\uc9c0 \ubabb\ud560 \uc218 \uc788\uc73c\ubbc0\ub85c, \uc2a4\ucf54\ud504 \uc124\uc815\uc5d0 \uc8fc\uc758\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h2>6. \ucd94\uac00 \uae30\ub2a5 \uad6c\ud604<\/h2>\n<p>\uc774\uc81c \uae30\ubcf8 OAuth 2.0 \uc694\uc18c\ub97c \uc124\uc815\ud588\uc73c\ub2c8, \uc0ac\uc6a9\uc790\uc758 \uc778\uc99d \ud6c4 \ucd94\uac00 \uc815\ubcf4\ub97c \ud45c\uc2dc\ud558\uac70\ub098 \uc870\uac74\ubd80 \uc811\uadfc \uad8c\ud55c\uc744 \uc81c\uc5b4\ud558\ub294 \uae30\ub2a5\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 \ud504\ub85c\ud544 \uc815\ubcf4\ub97c \uac00\uc838\uc624\uace0 \uc774\ub97c \uc6f9 \ud398\uc774\uc9c0\uc5d0 \ud45c\uc2dc\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>6.1. \uc0ac\uc6a9\uc790 \uc815\ubcf4 \uac00\uc838\uc624\uae30<\/h3>\n<pre><code>\nimport org.springframework.security.core.annotation.AuthenticationPrincipal;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Model;\nimport org.springframework.web.bind.annotation.GetMapping;\n\n@Controller\npublic class UserController {\n\n    @GetMapping(\"\/user\")\n    public String user(@AuthenticationPrincipal OAuth2AuthenticationToken authentication, Model model) {\n        model.addAttribute(\"user\", authentication.getPrincipal().getAttributes());\n        return \"user\"; \/\/ user.html\ub85c \uc774\ub3d9\n    }\n}\n<\/code><\/pre>\n<h3>6.2. \uc0ac\uc6a9\uc790 \uc815\ubcf4 \ud45c\uc2dc\ud558\uae30<\/h3>\n<p>\uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ud45c\uc2dc\ud558\uae30 \uc704\ud574, \uac04\ub2e8\ud55c HTML \ud15c\ud50c\ub9bf\uc744 \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. src\/main\/resources\/templates\/user.html \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4 \ub2e4\uc74c \ucf54\ub4dc\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\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;\uc0ac\uc6a9\uc790 \uc815\ubcf4&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;h1&gt;\uc0ac\uc6a9\uc790 \uc815\ubcf4&lt;\/h1&gt;\n&lt;ul&gt;\n    &lt;li&gt;\uc774\ub984: &lt;span th:text=\"${user['name']}\"&gt;&lt;\/span&gt;&lt;\/li&gt;\n    &lt;li&gt;\uc774\uba54\uc77c: &lt;span th:text=\"${user['email']}\"&gt;&lt;\/span&gt;&lt;\/li&gt;\n&lt;\/ul&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<h2>7. \ub9c8\ubb34\ub9ac<\/h2>\n<p>\uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth 2.0 \uc778\uc99d\uc744 \uc124\uc815\ud558\uace0, \uc2b9\uc778\ub41c URI\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. OAuth \ud504\ub85c\ud1a0\ucf5c\uc744 \ud1b5\ud574 \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uad6c\ud604\ud558\uba74 \uc548\uc804\ud558\uace0 \ud3b8\ub9ac\ud55c \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc81c \uc5ec\ub7ec\ubd84\uc740 \uc790\uc2e0\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc774\ub7ec\ud55c \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uace0, \ub354 \ub098\uc544\uac00 \ub2e4\uc591\ud55c API\uc640\uc758 \ud1b5\ud569\ub3c4 \uc2dc\ub3c4\ud574 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>OAuth 2.0\uc758 \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc644\ubcbd\ud558\uac8c \ud65c\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \ub2e4\uc591\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \ubb38\uc11c\ub97c \ucc38\uace0\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \ub354\uc6b1 \uc2ec\ud654\ub41c \ub0b4\uc6a9\uc744 \uc6d0\ud558\uc2e0\ub2e4\uba74, OAuth 2.0 \uacf5\uc2dd \ubb38\uc11c\ub97c \ucc38\uace0\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\uac00 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. OAuth 2.0\uc740 \uadf8\ub7ec\ud55c \uc778\uc99d\uc744 \uc704\ud55c \uc778\uae30 \uc788\ub294 \ud504\ub85c\ud1a0\ucf5c \uc911 \ud558\ub098\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc758 \uc790\uaca9 \uc99d\uba85\uc744 \uc81c3\uc790 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub178\ucd9c\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc11c\ube44\uc2a4\uc5d0 \uc548\uc804\ud558\uac8c \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. OAuth \uac1c\uc694 OAuth 2.0\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud55c \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc8fc\ub85c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26442\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\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-26442","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, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\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\/26442\/\" \/>\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, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\uac00 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. OAuth 2.0\uc740 \uadf8\ub7ec\ud55c \uc778\uc99d\uc744 \uc704\ud55c \uc778\uae30 \uc788\ub294 \ud504\ub85c\ud1a0\ucf5c \uc911 \ud558\ub098\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc758 \uc790\uaca9 \uc99d\uba85\uc744 \uc81c3\uc790 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub178\ucd9c\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc11c\ube44\uc2a4\uc5d0 \uc548\uc804\ud558\uac8c \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. OAuth \uac1c\uc694 OAuth 2.0\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud55c \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc8fc\ub85c &hellip; \ub354 \ubcf4\uae30 &quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26442\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:52:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:42:54+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\/26442\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26442\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30\",\"datePublished\":\"2024-10-27T10:52:41+00:00\",\"dateModified\":\"2024-11-26T07:42:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26442\/\"},\"wordCount\":50,\"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\/26442\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26442\/\",\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:52:41+00:00\",\"dateModified\":\"2024-11-26T07:42:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26442\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26442\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26442\/#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, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\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, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\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\/26442\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uacfc \uad8c\ud55c \uad00\ub9ac\uac00 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. OAuth 2.0\uc740 \uadf8\ub7ec\ud55c \uc778\uc99d\uc744 \uc704\ud55c \uc778\uae30 \uc788\ub294 \ud504\ub85c\ud1a0\ucf5c \uc911 \ud558\ub098\ub85c, \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc758 \uc790\uaca9 \uc99d\uba85\uc744 \uc81c3\uc790 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub178\ucd9c\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc11c\ube44\uc2a4\uc5d0 \uc548\uc804\ud558\uac8c \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. OAuth \uac1c\uc694 OAuth 2.0\uc740 \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud55c \ud504\ub85c\ud1a0\ucf5c\ub85c, \uc8fc\ub85c &hellip; \ub354 \ubcf4\uae30 \"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/26442\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:52:41+00:00","article_modified_time":"2024-11-26T07:42:54+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\/26442\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26442\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30","datePublished":"2024-10-27T10:52:41+00:00","dateModified":"2024-11-26T07:42:54+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26442\/"},"wordCount":50,"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\/26442\/","url":"https:\/\/atmokpo.com\/w\/26442\/","name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:52:41+00:00","dateModified":"2024-11-26T07:42:54+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26442\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26442\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26442\/#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, OAuth \uc11c\ube44\uc2a4\uc5d0 \uc2b9\uc778\ub41c URI \ucd94\uac00\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\/26442","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=26442"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26442\/revisions"}],"predecessor-version":[{"id":26443,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26442\/revisions\/26443"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}