From 82a06542d03f7bb07b4e94e620d1ca9ef26c5e20 Mon Sep 17 00:00:00 2001 From: mybloom Date: Thu, 9 Jun 2022 22:23:43 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20iOS=EC=97=90=EC=84=9C=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EB=B2=84=ED=8A=BC=EC=97=90=20=EC=97=B0?= =?UTF-8?q?=EA=B2=B0=ED=95=A0=20uri=20=EC=85=8B=ED=8C=85=20(ios-h/airbnb#3?= =?UTF-8?q?5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 깃헙 로그인 페이지로 redirect기능 --- .../org/team4/airbnb/auth/LoginController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 BE/src/main/java/org/team4/airbnb/auth/LoginController.java diff --git a/BE/src/main/java/org/team4/airbnb/auth/LoginController.java b/BE/src/main/java/org/team4/airbnb/auth/LoginController.java new file mode 100644 index 000000000..d08d00980 --- /dev/null +++ b/BE/src/main/java/org/team4/airbnb/auth/LoginController.java @@ -0,0 +1,15 @@ +package org.team4.airbnb.auth; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.servlet.view.RedirectView; + +@Controller +public class LoginController { + + @GetMapping("/login") + public RedirectView requestGithubLoginUrl(){ + String githubLoginUrl = "https://github.com/login/oauth/authorize?client_id=76d1fc03a4cba8d91b42&scope=read:user"; + return new RedirectView(githubLoginUrl); + } +}