Skip to content

Commit

Permalink
feat: iOS에서 로그인 버튼에 연결할 uri 셋팅 (#35)
Browse files Browse the repository at this point in the history
- 깃헙 로그인 페이지로 redirect기능
  • Loading branch information
mybloom committed Jun 9, 2022
1 parent 4772fb9 commit 82a0654
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions BE/src/main/java/org/team4/airbnb/auth/LoginController.java
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 82a0654

Please sign in to comment.