{"id":26428,"date":"2024-10-27T10:52:38","date_gmt":"2024-10-27T10:52:38","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26428"},"modified":"2024-11-26T07:43:27","modified_gmt":"2024-11-26T07:43:27","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-8","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26428\/","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, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 <strong>\uc2a4\ud504\ub9c1 \ubd80\ud2b8<\/strong>\ub97c \uc0ac\uc6a9\ud558\uc5ec <strong>\ubc31\uc5d4\ub4dc \uac1c\ubc1c<\/strong>\uc744 \ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 <strong>OAuth2<\/strong>\ub97c \ud65c\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uace0, \uc0ac\uc6a9\uc790\uac00 \uc791\uc131\ud55c \uae00\uc5d0 \uae00\uc4f4\uc774 \uc815\ubcf4\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub780?<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815\uc744 \ucd5c\uc18c\ud654\ud558\uace0 \ube60\ub978 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uac00\ub2a5\ud558\uac8c \ud574\uc8fc\ub294 <strong>\ud504\ub808\uc784\uc6cc\ud06c<\/strong>\uc785\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uba70, \uc790\uc8fc \uc0ac\uc6a9\ub418\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \uc124\uc815\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc73c\ub85c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>1.1. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc758 \uc7a5\uc810<\/h3>\n<ul>\n<li>\uc81c\uacf5\ub418\ub294 \uc2a4\ud0c0\ud130 \uc758\uc874\uc131\uc73c\ub85c \ube60\ub974\uace0 \uc27d\uac8c \uc2dc\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc790\ub3d9 \uad6c\uc131 \uae30\ub2a5\uc73c\ub85c \ubcf5\uc7a1\ud55c \uc124\uc815\uc744 \uc904\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\ub0b4\uc7a5 \uc11c\ubc84\ub97c \ud1b5\ud574 \ubcc4\ub3c4\uc758 \uc11c\ubc84 \uc124\uc815 \uc5c6\uc774\ub3c4 \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc2a4\ud504\ub9c1\uc5d0 \ub300\ud55c \uae4a\uc740 \uc774\ud574\uac00 \uc5c6\ub354\ub77c\ub3c4 \uac1c\ubc1c\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. OAuth2\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p><strong>OAuth2<\/strong>\ub294 \ub9ac\uc18c\uc2a4 \uc18c\uc720\uc790\uac00 \uc790\uc6d0\uc5d0 \ub300\ud55c \uc811\uadfc\uc744 \uc81c3\uc790 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ud5c8\uac00\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 <strong>\uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \ud504\ub85c\ud1a0\ucf5c<\/strong>\uc785\ub2c8\ub2e4. \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \ubaa8\ubc14\uc77c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ub4f1 \ub2e4\uc591\ud55c \ud658\uacbd\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<\/p>\n<h3>2.1. OAuth2\uc758 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c<\/h3>\n<ul>\n<li><strong>Resource Owner<\/strong>: \ubcf4\ud638\ub41c \ub9ac\uc18c\uc2a4\uc5d0 \ub300\ud55c \uc811\uadfc\uc744 \ud5c8\uac00\ud558\ub294 \uc0ac\uc6a9\uc790.<\/li>\n<li><strong>Client<\/strong>: \uc790\uc6d0 \uc18c\uc720\uc790\uc758 \uad8c\ud55c\uc744 \ubc1b\uc544\uc11c \uc790\uc6d0\uc5d0 \uc811\uadfc\ud558\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158.<\/li>\n<li><strong>Authorization Server<\/strong>: \uc778\uc99d\uc744 \ucc98\ub9ac\ud558\uace0, \ud1a0\ud070\uc744 \ubc1c\uae09\ud558\ub294 \uc11c\ubc84.<\/li>\n<li><strong>Resource Server<\/strong>: \ubcf4\ud638\ub41c \ub9ac\uc18c\uc2a4\ub97c \uc800\uc7a5\ud558\uace0 \uc788\ub294 \uc11c\ubc84.<\/li>\n<\/ul>\n<h2>3. \ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ud504\ub85c\uc81d\ud2b8 \uac1c\ubc1c\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud574 <strong>Spring Initializr<\/strong>\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc740 \uc758\uc874\uc131\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694:<\/p>\n<ul>\n<li>Spring Web<\/li>\n<li>Spring Security<\/li>\n<li>Spring Data JPA<\/li>\n<li>H2 Database (\ud14c\uc2a4\ud2b8 \ubaa9\uc801)<\/li>\n<li>OAuth2 Client<\/li>\n<\/ul>\n<p>\ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \ud6c4, \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c Maven \ub610\ub294 Gradle\uc744 \ud1b5\ud574 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<h3>3.1. \uc8fc\uc694 \uc758\uc874\uc131 \ucd94\uac00 (pom.xml \uc608\uc2dc)<\/h3>\n<pre><code>\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-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-data-jpa&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;com.h2database&lt;\/groupId&gt;\n        &lt;artifactId&gt;h2&lt;\/artifactId&gt;\n        &lt;scope&gt;runtime&lt;\/scope&gt;\n    &lt;\/dependency&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.security.oauth.boot&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-security-oauth2-autoconfigure&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n&lt;\/dependencies&gt;\n<\/code><\/pre>\n<h2>4. \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud55c OAuth2 \uc124\uc815<\/h2>\n<h3>4.1. application.yml \uc124\uc815<\/h3>\n<p>OAuth2\ub97c \uc0ac\uc6a9\ud560 \uc678\ubd80 \uc11c\ube44\uc2a4 (\uc608: Google, GitHub \ub4f1)\uc5d0 \ub300\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8 \uc815\ubcf4\ub97c <code>application.yml<\/code> \ud30c\uc77c\uc5d0 \uc124\uc815\ud569\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        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\/userinfo\/v2\/me\n<\/code><\/pre>\n<h3>4.2. Security Configuration \uc124\uc815<\/h3>\n<p>\uc2a4\ud504\ub9c1 \uc2dc\ud050\ub9ac\ud2f0\ub97c \uc124\uc815\ud558\uc5ec OAuth2 \ub85c\uadf8\uc778 \uae30\ub2a5\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\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    @Override\n    protected void configure(HttpSecurity http) throws Exception {\n        http\n            .authorizeRequests(authorizeRequests -&gt;\n                authorizeRequests\n                    .antMatchers(\"\/\", \"\/login\", \"\/perform_login\").permitAll()\n                    .anyRequest().authenticated()\n            )\n            .oauth2Login(oauth2 -&gt; oauth2\n                .loginPage(\"\/login\")\n            );\n    }\n}\n<\/code><\/pre>\n<h2>5. \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5 \uad6c\ud604<\/h2>\n<h3>5.1. Custom Login Page \ub9cc\ub4e4\uae30<\/h3>\n<p>HTML\uacfc CSS\ub97c \uc774\uc6a9\ud558\uc5ec \ucee4\uc2a4\ud140 \ub85c\uadf8\uc778 \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc608\uc81c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\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;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n    &lt;title&gt;\ub85c\uadf8\uc778 \ud398\uc774\uc9c0&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>5.2. \ub85c\uadf8\uc544\uc6c3 \ucc98\ub9ac\ud558\uae30<\/h3>\n<p>\ub85c\uadf8\uc544\uc6c3 \uae30\ub2a5\uc744 \uc124\uc815\ud558\ub824\uba74, \ub2e4\uc74c\uacfc \uac19\uc774 <code>SecurityConfig<\/code>\ub97c \uc218\uc815\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n@Override\nprotected void configure(HttpSecurity http) throws Exception {\n    http\n        .authorizeRequests(authorizeRequests -&gt;\n            authorizeRequests\n                .antMatchers(\"\/\", \"\/login\", \"\/perform_login\").permitAll()\n                .anyRequest().authenticated()\n        )\n        .oauth2Login(oauth2 -&gt; oauth2\n            .loginPage(\"\/login\")\n        )\n        .logout(logout -&gt; logout\n            .logoutUrl(\"\/logout\")\n            .logoutSuccessUrl(\"\/login?logout\")\n        );\n}\n<\/code><\/pre>\n<h2>6. \uae00\uc4f0\uae30 \uae30\ub2a5 \uad6c\ud604<\/h2>\n<p>\uc774\uc81c \uc0ac\uc6a9\uc790\uac00 \uc791\uc131\ud55c \uae00\uc744 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ud558\uae30 \uc704\ud55c \uae30\ub2a5\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4.<\/p>\n<h3>6.1. Entity \ud074\ub798\uc2a4 \uc0dd\uc131<\/h3>\n<p>\uae00 \uc791\uc131\uc790\ub97c \ud3ec\ud568\ud55c \uae00(Post)\uc744 \uc704\ud55c Entity \ud074\ub798\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\nimport javax.persistence.*;\n\n@Entity\npublic class Post {\n    @Id\n    @GeneratedValue(strategy = GenerationType.IDENTITY)\n    private Long id;\n\n    private String title;\n    private String content;\n\n    @ManyToOne\n    @JoinColumn(name = \"author_id\")\n    private User author;\n\n    \/\/ Getters and Setters\n}\n<\/code><\/pre>\n<h3>6.2. User Entity \uc0dd\uc131<\/h3>\n<pre><code>\nimport javax.persistence.*;\n\n@Entity\npublic class User {\n    @Id\n    @GeneratedValue(strategy = GenerationType.IDENTITY)\n    private Long id;\n\n    private String username;\n    private String email;\n\n    \/\/ Getters and Setters\n}\n<\/code><\/pre>\n<h3>6.3. Repository \ubc0f Service \uc0dd\uc131<\/h3>\n<p>\uae00 \uc791\uc131\uc744 \uc704\ud55c Repository\uc640 Service \ud074\ub798\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\n\/\/ PostRepository.java\nimport org.springframework.data.jpa.repository.JpaRepository;\n\npublic interface PostRepository extends JpaRepository&lt;Post, Long&gt; {\n}\n\n\/\/ PostService.java\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.List;\n\n@Service\npublic class PostService {\n    @Autowired\n    private PostRepository postRepository;\n\n    public List&lt;Post&gt; findAll() {\n        return postRepository.findAll();\n    }\n\n    public Post save(Post post) {\n        return postRepository.save(post);\n    }\n}\n<\/code><\/pre>\n<h3>6.4. Controller \uc0dd\uc131<\/h3>\n<p>\uc0ac\uc6a9\uc790\uac00 \uae00\uc744 \uc791\uc131\ud558\uace0 \uc870\ud68c\ud560 \uc218 \uc788\ub3c4\ub85d Controller\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.*;\n\nimport java.util.List;\n\n@RestController\n@RequestMapping(\"\/posts\")\npublic class PostController {\n    @Autowired\n    private PostService postService;\n\n    @GetMapping\n    public List&lt;Post&gt; getAllPosts() {\n        return postService.findAll();\n    }\n\n    @PostMapping\n    public Post createPost(@RequestBody Post post) {\n        return postService.save(post);\n    }\n}\n<\/code><\/pre>\n<h2>7. \uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc758 \uae30\ucd08\uc640 OAuth2\ub97c \ud65c\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uae00\uc4f0\uae30 \uae30\ub2a5 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. OAuth2\ub97c \ud1b5\ud574 \ub2e4\uc591\ud55c \uc18c\uc15c \ubbf8\ub514\uc5b4 \ub85c\uadf8\uc778 \uae30\ub2a5\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc73c\uba70, \uc0ac\uc6a9\uc790 \uce5c\ud654\uc801\uc778 \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0 \ud070 \ub3c4\uc6c0\uc774 \ub420 \uac83\uc785\ub2c8\ub2e4. \ub2e4\uc74c \uac15\uc88c\uc5d0\uc11c\ub294 \ud504\ub860\ud2b8\uc5d4\ub4dc\uc640\uc758 \uc5f0\ub3d9, \ub354 \ub098\uc544\uac00 \ubc30\ud3ec\uc5d0 \ub300\ud55c \ub0b4\uc6a9\uc744 \ub2e4\ub8f0 \uc608\uc815\uc785\ub2c8\ub2e4. \uc774 \uae00\uc774 \ub3c4\uc6c0\uc774 \ub418\uc168\uae38 \ubc14\ub77c\uba70, \uc9c8\ubb38 \uc0ac\ud56d\uc774 \uc788\uc73c\uba74 \uc5b8\uc81c\ub4e0\uc9c0 \ub313\uae00\ub85c \ub0a8\uaca8\uc8fc\uc138\uc694!<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc744 \ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 OAuth2\ub97c \ud65c\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uace0, \uc0ac\uc6a9\uc790\uac00 \uc791\uc131\ud55c \uae00\uc5d0 \uae00\uc4f4\uc774 \uc815\ubcf4\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub780? \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815\uc744 \ucd5c\uc18c\ud654\ud558\uace0 \ube60\ub978 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uac00\ub2a5\ud558\uac8c \ud574\uc8fc\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uba70, \uc790\uc8fc \uc0ac\uc6a9\ub418\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \uc124\uc815\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc73c\ub85c \uc6f9 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26428\/\" 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, \uae00\uc5d0 \uae00\uc4f4\uc774 \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-26428","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, \uae00\uc5d0 \uae00\uc4f4\uc774 \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\/26428\/\" \/>\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, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc744 \ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 OAuth2\ub97c \ud65c\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uace0, \uc0ac\uc6a9\uc790\uac00 \uc791\uc131\ud55c \uae00\uc5d0 \uae00\uc4f4\uc774 \uc815\ubcf4\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub780? \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815\uc744 \ucd5c\uc18c\ud654\ud558\uace0 \ube60\ub978 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uac00\ub2a5\ud558\uac8c \ud574\uc8fc\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uba70, \uc790\uc8fc \uc0ac\uc6a9\ub418\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \uc124\uc815\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc73c\ub85c \uc6f9 &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, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26428\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:52:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:43:27+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=\"3\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/26428\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26428\/\"},\"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, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30\",\"datePublished\":\"2024-10-27T10:52:38+00:00\",\"dateModified\":\"2024-11-26T07:43:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26428\/\"},\"wordCount\":56,\"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\/26428\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26428\/\",\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:52:38+00:00\",\"dateModified\":\"2024-11-26T07:43:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26428\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26428\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26428\/#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, \uae00\uc5d0 \uae00\uc4f4\uc774 \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, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, \uae00\uc5d0 \uae00\uc4f4\uc774 \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\/26428\/","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, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc744 \ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 OAuth2\ub97c \ud65c\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uace0, \uc0ac\uc6a9\uc790\uac00 \uc791\uc131\ud55c \uae00\uc5d0 \uae00\uc4f4\uc774 \uc815\ubcf4\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub780? \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub294 \ubcf5\uc7a1\ud55c \uc124\uc815\uc744 \ucd5c\uc18c\ud654\ud558\uace0 \ube60\ub978 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uac00\ub2a5\ud558\uac8c \ud574\uc8fc\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uba70, \uc790\uc8fc \uc0ac\uc6a9\ub418\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \uc124\uc815\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc73c\ub85c \uc6f9 &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, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/26428\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:52:38+00:00","article_modified_time":"2024-11-26T07:43:27+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":"3\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/26428\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26428\/"},"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, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30","datePublished":"2024-10-27T10:52:38+00:00","dateModified":"2024-11-26T07:43:27+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26428\/"},"wordCount":56,"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\/26428\/","url":"https:\/\/atmokpo.com\/w\/26428\/","name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, OAuth2\ub85c \ub85c\uadf8\uc778 \ub85c\uadf8\uc544\uc6c3 \uad6c\ud604, \uae00\uc5d0 \uae00\uc4f4\uc774 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:52:38+00:00","dateModified":"2024-11-26T07:43:27+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26428\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26428\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26428\/#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, \uae00\uc5d0 \uae00\uc4f4\uc774 \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\/26428","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=26428"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26428\/revisions"}],"predecessor-version":[{"id":26429,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26428\/revisions\/26429"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}